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
When the function g is called with the multiple return values of f, the Lua Language Server should infer the type of x based on the second return value of f (string), corresponding to the second generic type parameter (U) in g.
Actual Behaviour
The Lua Language Server fails to infer the type of x. Instead, the type is left unknown.
Reproduction steps
Write the following Lua code in an editor with the Lua Language Server enabled:
How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Type Checking
Expected Behaviour
When the function g is called with the multiple return values of f, the Lua Language Server should infer the type of x based on the second return value of f (string), corresponding to the second generic type parameter (U) in g.
Actual Behaviour
The Lua Language Server fails to infer the type of x. Instead, the type is left unknown.
Reproduction steps
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: