8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for 8000 a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following cases emit warning:
local function foo(x: number?): number return assert(x) end
TypeError: Type 'number?' could not be converted into 'number'
local foo: number? = nil local bar: number = assert(foo)
This is incorrect, it should convert number? to number.
number?
number
But if the code is separated on multiple lines, everything works correctly:
local function foo(x: number?): number assert(x) return x end
local foo: number? = nil assert(foo) local bar: number = foo
The text was updated successfully, but these errors were encountered:
alexmccord
Successfully merging a pull request may close this issue.
The following cases emit warning:
This is incorrect, it should convert
number?
tonumber
.But if the code is separated on multiple lines, everything works correctly:
The text was updated successfully, but these errors were encountered: