Open
Description
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
---@class Example<T>: T
---@field thing boolean
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
Metadata
Metadata
Assignees
Labels
No labels