Sign in
◑
Theme
fuchsia
/
third_party
/
swig
/
725bc081da170662b194ca1ff5e7e75144bc0760
/
.
/
Examples
/
test-suite
/
lua
/
overload_polymorphic_runme.lua
blob: f98f24c4ccd748a9628d3976e84a08205dfcb190 [
file
]
local
v
=
require
(
"overload_polymorphic"
)
local
t
=
v
.
Derived
()
assert
(
v
.
test
(
t
),
0
,
"test(Derived)"
)
assert
(
v
.
test
(
1
),
1
,
"test(1)"
)
assert
(
v
.
test2
(
t
),
1
,
"test2(Derived)"
)
assert
(
v
.
test3
(
t
,
nil
,
t
),
1
,
"test3(Derived, nil, Derived)"
)