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

26 lines
174 B
Perl

struct A {
b : &B
} and
struct B
terra foo()
var a : A
a.b = nil
return a
end
local a = foo()
struct B {
a : int
}
terra foo2(a : &A)
a.b = a.b + 1
end
foo2(a)