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
localinterfaceifoof_bar: function(obj: ifoo)
f_baz: function(obj: ifoo)
f_bazz: function(obj: ifoo)
m_bar: function(self: ifoo)
m_baz: function(self: ifoo)
endlocalrecordfooisifoo-- methods seem inherited with a transformation `self: ifoo` --> `self: foo`-- functions seem raw inheritedf_bazz: function(obj: foo) -- function could be overloaded in a compatible way (foo is an ifoo)endfunctionfoo.f_bar (obj: ifoo)
print(obj)
endfunctionfoo.f_baz (obj: foo) -- type signature of 'f_baz' does not match its declaration in foo: argument 1: foo is not a ifooprint(obj)
endfunctionfoo.f_bazz (obj: foo)
print(obj)
endfunctionfoo.m_bar (self: ifoo) -- NO ERROR: but ifoo is not an instance, and this behavior is well documentedprint(self)
endfunctionfoo.m_baz (self: foo)
print(self)
end
After some thinging, the behavior is correct (function must be overloaded like f_bazz).
But the message causes some trouble : foo is not a ifoo
The text was updated successfully, but these errors were encountered:
After some thinging, the behavior is correct (function must be overloaded like
f_bazz
).But the message causes some trouble :
foo is not a ifoo
The text was updated successfully, but these errors were encountered: