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)
MacOS
Annotations, Type Checking
Follow the wiki tutorial:
local A = "Hello" local B = "World" ---@alias myLiteralAliases `A` | `B` ---@param x myLiteralAliases function foo(x) end
it should not show any warning when using it:
foo(A)
It show warning:
Cannot assign `string` to parameter ``A`|`B``. - `string` cannot match ``A`|`B``Lua Diagnostics.(param-type-mismatch)
Enter the code in VSCode
local A = "Hello" local B = "World" ---@alias myLiteralAliases `A` | `B` ---@param x myLiteralAliases function foo(x) end foo(A)
then you will see it
Some info:
$ code --version 1.73.0 8fa188b2b301d36553cbc9ce1b0a146ccb93351f x64 $ ls ~/.vscode/extensions/ | grep sumneko sumneko.lua-3.6.2-darwin-x64
No response
The text was updated successfully, but these errors were encountered:
095a670
holy efficency
Sorry, something went wrong.
No branches or pull requests
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
MacOS
What is the issue affecting?
Annotations, Type Checking
Expected Behaviour
Follow the wiki tutorial:
it should not show any warning when using it:
Actual Behaviour
It show warning:
Reproduction steps
Enter the code in VSCode
then you will see it
Additional Notes
Some info:
Log File
No response
The text was updated successfully, but these errors were encountered: