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
Other
Linux
Type Checking
When assigning a class/key-value table to a type defined as an array, a diagnostics error should be raised.
No diagnostics error is raised.
local dict = {a = 'a'} ---@type number[] local array = dict
Observe that no diagnostics error is raised when assigning dict to array, which is defined as an array.
dict
array
lua-langauge-server should check for the presence of non-integer indices in a table. If there are any, the table should not match the array type.
lua-langauge-server
I believe the present issue is the underlying issue in #1721.
3.13.6-1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How are you using the lua-language-server?
Other
Which OS are you using?
Linux
What is the issue affecting?
Type Checking
Expected Behaviour
When assigning a class/key-value table to a type defined as an array, a diagnostics error should be raised.
Actual Behaviour
No diagnostics error is raised.
Reproduction steps
Observe that no diagnostics error is raised when assigning
dict
toarray
, which is defined as an array.Additional Notes
lua-langauge-server
should check for the presence of non-integer indices in a table. If there are any, the table should not match the array type.I believe the present issue is the underlying issue in #1721.
Version
3.13.6-1
The text was updated successfully, but these errors were encountered: