blob: 6664ea9d54757681e101e0a62b43efd5beb2f0ee [file]
i=require("iadd")
catch_undef_globs() -- catch "undefined" global variables
foo1 = i.Foo()
foo1_a = foo1.AsA
assert(foo1_a.x == 5)
assert(foo1_a:get_me().x == 5)
-- Unfortunately, in Lua operator+= can't be overloaded
foo1.AsLong = 1000
assert(foo1.AsLong == 1000)