Generic class field #1216
Labels
duplicate
This issue or pull request already exists
enhancement
New feature or request
feat/LuaCats Annotations
Related to Lua Language Server Annotations (LuaCats)
Describe the bug
Generics do not work when declaring classes,
I get
Undefined type or alias T
, and the fielddata
does not autocomplete.I am not sure if this is intentional or not because the
<T>
does highlight in the---@class
properly. I didn't see anyone using generic class fields though although I thought that'd be a very common usecase.To Reproduce
Expected behavior
I expected the field
data
to be defined as a numberScreenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: