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
I suggest consider vararg returns as optional (can be nil) because no one guarantees that they will be filled in. The same goes for arguments, despite the fact that their type can also be optional or nilable.
If we return at least something, but we don't know the quantity, then the first argument won't be vararg - any, any ....
Thus after that we do not need to additionally specify that the vararg returns is optional.
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?
Diagnostics/Syntax Checking
Expected Behaviour
I suggest consider vararg returns as optional (can be
nil
) because no one guarantees that they will be filled in. The same goes for arguments, despite the fact that their type can also be optional or nilable.If we return at least something, but we don't know the quantity, then the first argument won't be vararg -
any, any ...
.Thus after that we do not need to additionally specify that the vararg returns is optional.
Actual Behaviour
Vararg arguments are optional, but vararg returns are not.
Reproduction steps
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: