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
Visual Studio Code Extension (sumneko.lua)
Windows WSL
Annotations
cast as record[]
cast as table
---@alias record {[string]:string} ---@param a record[]|number|table local function f(a, n) if type(a) == 'table' then if a.foo then ---@cast a record[] print(a) end end end
when you hover a of print(a), cast doesn't work, it will display:
a
print(a)
when you change a.foo to a, cast work. it will display:
a.foo
No response
The text was updated successfully, but these errors were encountered:
8ed72a9
No branches or pull requests
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows WSL
What is the issue affecting?
Annotations
Expected Behaviour
cast as record[]
Actual Behaviour
cast as table
Reproduction steps
when you hover

a
ofprint(a)
, cast doesn't work, it will display:when you change

a.foo
toa
, cast work. it will display:Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: