-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
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
Method call using named arguments has missing-parameter false positives #2671
Comments
This is WAI, Lua doesn't have named arguments, you are calling the function with a table as the The actual function you are using may be supporting this by checking the type of the first argument. In this case your "forward declaration" is wrong and you probably want an additional @overload annotation that indicates this. |
Looks like I got tricked by the wording of the documentation and wrote the wrong forward declaration 😅 (Especially confusing on the next function, as it further implies that it's just something that's part of the language) |
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?
Type Checking
Expected Behaviour
No error, or at least a different, more appropriate error if applicable.
Actual Behaviour
Reproduction steps
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: