Support for generic classes
Describe the bug Despite being mentioned in luanalysis, generic classes are not supported by this language server.
Screenshots

Environment:
- OS: Arch Linux
- Client: VSCode
Just some test cases:
---@class Array<T>: { [integer]: T }
---@type Array<string>
local arr = {}
-- correctly warns that I am assigning a boolean to a string
arr[1] = false
-- no warning despite indexing with a string instead of an integer
arr["foo"] = "bar"
-- correctly does not warn as I am following the type correctly
arr[3] = "Correct"
---@class Dictionary<T>: { [string]: T }
---@type Dictionary<boolean>
local dict = {}
-- no warning despite indexing with a number
dict[1] = "incorrect"
-- no warning despite assigning a string
dict["foo"] = "bar?"
-- correctly does not warn as I am following the type correctly
dict["correct"] = true
Ran into this today as well 😞.
Any update on this? This feature would be amazing!
This has cropped up as an issue that's making modularity difficult. Would love to see it fixed.
Is there any fix for Undefined type or alias yet?
Because it looks like it works correctly in type definitions:
I am also experiencing this issue on arch, using neovim with the mason lua-language-server language server.