blob: 3f3f593732c477ed311e8dde192c9ef3916090d9 [file]
local v=require("kwargs_feature")
-- Check normal overloading still works (no compactdefaultargs)
-- if the kwargs feature is used, as the kwargs feature is not supported
local f = v.Foo(99)
assert(f:foo() == 1)
assert(f:foo(3) == 3)
assert(f:foo(4, 7) == 11)
assert(v.Foo.statfoo() == 1)
assert(v.Foo.statfoo(2) == 2)
assert(v.Foo.statfoo(3, 5) == 8)