Closed
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Annotations, Type Checking
Expected Behaviour
Field declaration should have priority over generic types
---@Class gener: { [string]: number}
---@field field string
Expecting gener.field to have type string.
Actual Behaviour
Field get type from generic declaration and field declaration
Reproduction steps
Additional Notes
I understand that generics are not fully supported yet and there are a lot of issues. Feel free to close this issue if it is a duplicate.
Log File
No response