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
The assert function takes any number of arguments and returns all of its arguments.
localx, y, z=assert(1, 2, 3)
The type hints for x, y and z should all be integer. None of the parameters of assert are redundant.
Actual Behaviour
The type hinting shows assert returning only a single argument. The type hint for x is integer, y and z have nil. The third parameter is highlighted as redundant.
Reproduction steps
Enter the following code in the editor.
localx, y, z=assert(1, 2, 3)
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered:
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, Diagnostics/Syntax Checking
Expected Behaviour
The
assert
function takes any number of arguments and returns all of its arguments.The type hints for
x
,y
andz
should all beinteger
. None of the parameters ofassert
are redundant.Actual Behaviour
The type hinting shows
assert
returning only a single argument. The type hint forx
isinteger
,y
andz
havenil
. The third parameter is highlighted as redundant.Reproduction steps
Enter the following code in the editor.
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: