We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Visual Studio Code Extension (sumneko.lua)
MacOS
Annotations, Type Checking, Diagnostics/Syntax Checking
---@class lanes.Lane<T> : { [integer] : T } ---@field status lanes.Lane.Status ---@field error string? local Lane = {} ---@generic T ---@param self lanes.Lane<T> ---@param timeout number? ---@return T ... function Lane:join(timeout) end ---@type lanes.Lane<integer> local test local i = test:join()
:join() exists, and i is type integer
:join()
i
integer
Use the code above
No response
The text was updated successfully, but these errors were encountered:
Generic class is currently not supported. #1861
Sorry, something went wrong.
Yes, I think this can be marked as a duplicate of #734
No branches or pull requests
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?
Annotations, Type Checking, Diagnostics/Syntax Checking
Expected Behaviour
:join()
exists, andi
is typeinteger
Actual Behaviour
Reproduction steps
Use the code above
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: