We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for 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
Describe the bug I get a return-type-mismatch warning for correct lua code.
return-type-mismatch
return valueA and valueB
should use the type of valueB (see below screenshot)
valueB
But when writing code like this (see below screenshot), it suddenly takes the type of valueA.
valueA
To Reproduce
---@return table|nil function getDetail() return nil end ---@return number|nil function other() return nil end ---@return number function example() local detail = getDetail() return detail and other() end
Expected behavior Correct type detection.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
Should be number|nil
number|nil
Sorry, something went wrong.
ab1838e
Thank you very much for your work!
No branches or pull requests
Describe the bug
I get a
return-type-mismatch
warning for correct lua code.should use the type of
valueB
(see below screenshot)But when writing code like this (see below screenshot), it suddenly takes the type of
valueA
.To Reproduce
Expected behavior
Correct type detection.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: