Files
linguist/samples/Terra/vtablerec.t
2016-01-28 11:22:27 +07:00

30 lines
215 B
Perl

struct V {
entry : {&A} -> {}
} and
struct A {
vtable : &V
}
terra what(a : &A) : {}
end
what:compile()
terra bar()
var v : V
v.entry = what
end
bar:compile()
--[[
{&A}->{}
&A
A
&V
V
&{&A}->{}
{&A}->{}
]]