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
It should not give me a warning that this is incorrect syntax with love2D
love.event.quit("restart")
Actual Behaviour
Gives me this warning:
Cannot assign string to parameter number?.
string cannot match number?
Type string cannot match nil
Type string cannot match numberLua Diagnostics.(param-type-mismatch)
Reproduction steps
On version v3.6.6 of Sumneko Lua gives me a warning with mentioned love2D function.
Additional Notes
in event.lua when I change
---@overload fun('restart': string|'restart')
---@param exitstatus? number # The program exit status to use when closing the application.
function love.event.quit(exitstatus) end
to
---@overload fun(restart: string|'restart')
---@param exitstatus? number # The program exit status to use when closing the application.
function love.event.quit(exitstatus) end
seems to solve the problem.
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?
Annotations
Expected Behaviour
It should not give me a warning that this is incorrect syntax with love2D
love.event.quit("restart")
Actual Behaviour
Gives me this warning:
Cannot assign
string
to parameternumber?
.string
cannot matchnumber?
string
cannot matchnil
string
cannot matchnumber
Lua Diagnostics.(param-type-mismatch)Reproduction steps
On version v3.6.6 of Sumneko Lua gives me a warning with mentioned love2D function.
Additional Notes
in event.lua when I change
to
seems to solve the problem.
Log File
No response
The text was updated successfully, but these errors were encountered: