-
-
Notifications
You must be signed in to change notification settings - Fork 354
cannot extend generic class #1929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@carsakiller saw those from the generics super issue, but afaict this is a different issue |
the issue here is |
Yes, but the bottom line is really that Just trying to keep things organized—there are so many similar issues with slight variations 😄 |
i was assuming it does work though:
|
I see, I thought the generic class was not working when inheriting --- @class Foo<t>: { a: t; }
---@type Foo<integer>
local x
print(x.a) -- Type is integer
---@class Bar : Foo<integer>
---@type Bar
local y
print(y.a) -- undefined field `a` |
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?
Type Checking
Expected Behaviour
inheritance works, or error diagnostic
Actual Behaviour
inheritance doesnt work, no diagnostic
Reproduction steps
Additional Notes
seems like it just doesnt handle generic syntax in
: here
?Log File
No response
The text was updated successfully, but these errors were encountered: