Sign in
◑
Theme
fuchsia
/
third_party
/
swig
/
725bc081da170662b194ca1ff5e7e75144bc0760
/
.
/
Examples
/
test-suite
/
lua
/
casts_runme.lua
blob: ebe8ccc953cef5b3e52276be1d4796c886dc8460 [
file
]
require
(
"casts"
)
local
a
=
casts
.
A
()
assert
(
a
~=
nil
)
assert
(
swig_type
(
a
)
==
"A *"
)
a
:
hello
()
-- Make sure b inherits hello() from class A
local
b
=
casts
.
B
()
assert
(
b
~=
nil
)
assert
(
swig_type
(
b
)
==
"B *"
)
b
:
hello
()