It looks like you're new here. If you want to get involved, click one of these buttons!
local Foo = Core.class() function Foo:__call(a, b) return a + b end local Bar = Core.class(Foo) local foo = Foo.new() local bar = Bar.new() print(foo(10, 20)) --< OK print(bar(10, 20)) --< error |
Comments
I came up with another solution. Not the best, but it works