1 require("import") -- the import fn
2 import("dynamic_cast") -- import code
10 -- swig_type is a swiglua specific function which gets the swig_type_info's name
11 assert(swig_type(f)==swig_type(x))
12 assert(swig_type(b)==swig_type(y))
14 -- the real test: is y a Foo* or a Bar*?
15 assert(dynamic_cast.do_test(y)=="Bar::test")