blob: 5d4c1360c129f44523b7a84805d81acf00bca3f0 [file] [log] [blame]
require("import") -- the import fn
-- note: need to import the base class module before the derived class
-- this is because if the derived class is imported first it doesn't get the base class methods
import("multi_import_b") -- import code
import("multi_import_a") -- import code
x = multi_import_b.XXX()
assert(x:testx() == 0)
y = multi_import_b.YYY()
assert(y:testx() == 0)
assert(y:testy() == 1)
z = multi_import_a.ZZZ()
assert(z:testx() == 0)
assert(z:testz() == 2)