We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Infers a and aa correctly but not the rest
a
aa
---@diagnostic disable: codestyle-check, spell-check, unused-local ---@alias AnyChild A|B|C ---@class PARENT local PARENT = {} ---@class A: PARENT local A = {} ---@class B: PARENT local B = {} ---@class C: PARENT local C = {} ---@overload fun(self:PARENT): A ---@overload fun(self:AnyChild, other: A): A ---@overload fun(self:AnyChild, other: B): B function PARENT:new(other) self.a = 2 return {} end local a = A:new() local aa = a:new() local aaa = a:new(B) local b = B:new(B) local bb = b:new(B) local bbb = b:new(C)
The text was updated successfully, but these errors were encountered:
Overloading functions based on parameter types is not yet supported.
Sorry, something went wrong.
No branches or pull requests
Infers
a
andaa
correctly but not the restThe text was updated successfully, but these errors were encountered: