You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some warning should be raised if you use [5] on a table<string, x>, for example.
Actual Behaviour
In the expression tbl[x], the type of x is not checked at all
Reproduction steps
---@typetable<integer,string>--orstring[]localIntStr= {}
---@typetable<string,integer>localStrInt= {}
IntStr[5] ="hi" -- okIntStr["a"] ="b" -- "a" should produce a warningStrInt["a"] =5-- okStrInt[5] =6-- 5 should produce a warning
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Type Checking
Expected Behaviour
Some warning should be raised if you use [5] on a table<string, x>, for example.
Actual Behaviour
In the expression
tbl[x]
, the type of x is not checked at allReproduction steps
Additional Notes
Probably related to #1861
Log File
No response
The text was updated successfully, but these errors were encountered: