mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
16 lines
191 B
Perl
16 lines
191 B
Perl
--the zero line
|
|
struct A { b : B } and
|
|
struct B {a : int, b : int}
|
|
|
|
|
|
terra foo()
|
|
var b = B {1,2}
|
|
return b
|
|
end
|
|
|
|
terra bar()
|
|
return foo().b
|
|
end
|
|
|
|
local test = require("test")
|
|
test.eq(bar(),2) |