mirror of https://github.com/swig/swig
17 lines
475 B
Lua
17 lines
475 B
Lua
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)
|