Method Chaining
#3341
Replies: 1 comment 1 reply
-
|
The In short:
---@generic T
---@param self T
---@return T
function Parent:SomeParentMethod() end
--> now when inheritance class call this method, the return type can be resolved correctly |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From this basic example was hoping someone could clarify why the error is happening.
Even though SomeParentMethod is a method of the parent, with inheritance, it looks like order of method chaining matters?
The meta file:
and the warning:

Beta Was this translation helpful? Give feedback.
All reactions