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
Operators (in particular arithmetic operators) should ensure their operands are covariant of number.
The following certainly shouldn't be allowed:
---@type boolean local aBoolean = true + true -- Illegal
However, non-arithmetic operators should also be checked for compatibility e.g.
---@type number local a = 1 ---@type number local length = #a -- Illegal
Issue
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Operators (in particular arithmetic operators) should ensure their operands are covariant of number.
The following certainly shouldn't be allowed:
However, non-arithmetic operators should also be checked for compatibility e.g.
Issue
The text was updated successfully, but these errors were encountered: