You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When annotating that one class has inherited from another, there is currently no way to annotate a function that returns it's current type that the current type should change when the class is inherited. Something along these lines, or something that accomplishes the same goal would be fantastic.
---@classFooFoo= {}
---@returnself --<-- 'self' refers to Foo so Foo.new() returns FoofunctionFoo.new() end---@classBar:FooBar= {}
localb=Bar.new() --<-- Bar.new() is inherited so the 'self' return type is now Bar-- b should now be type Bar
Thanks!
The text was updated successfully, but these errors were encountered:
When annotating that one class has inherited from another, there is currently no way to annotate a function that returns it's current type that the current type should change when the class is inherited. Something along these lines, or something that accomplishes the same goal would be fantastic.
Thanks!
The text was updated successfully, but these errors were encountered: