We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Visual Studio Code Extension (sumneko.lua)
Windows
Annotations, Type Checking
When defining a generic class, the class should be able to inherit directly from the generic, allowing an extension of the generic
---@class Example<T>: T ---@field thing boolean
Lua diagnostics reports "undefined class `T`"
Copy the following into VSCode
---@class Example<T>: T
Hover over the second T
T
No response
The text was updated successfully, but these errors were encountered:
luals doesn't support generic classes yet.
Sorry, something went wrong.
☝️🤓 Actually , it does since #3055, merged in 3.13.6. The support is still a bit limited, however.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
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, Type Checking
Expected Behaviour
When defining a generic class, the class should be able to inherit directly from the generic, allowing an extension of the generic
Actual Behaviour
Lua diagnostics reports "undefined class `T`"
Reproduction steps
Copy the following into VSCode
---@class Example<T>: T
Hover over the second
T
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: