if the name ordering was in a certain order. Added new example programs (dual, embed) and runtime tests for test-suite. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
16 lines
475 B
Lua
16 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)
|