mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
23 lines
208 B
Perl
23 lines
208 B
Perl
|
|
|
|
struct A
|
|
|
|
terra foo(a : &A)
|
|
return a
|
|
end
|
|
|
|
assert(nil == foo(nil))
|
|
assert(false == A:iscomplete())
|
|
|
|
|
|
struct A {
|
|
b : int
|
|
}
|
|
|
|
terra foo2(a : &A)
|
|
return a.b
|
|
end
|
|
|
|
foo2:compile()
|
|
assert(true == A:iscomplete())
|