mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
25 lines
277 B
Perl
25 lines
277 B
Perl
|
|
|
|
struct A {
|
|
a : int
|
|
}
|
|
|
|
struct B {
|
|
a : A
|
|
}
|
|
|
|
function A.metamethods.__staticinitialize()
|
|
print("STATIC INIT A")
|
|
local terra what(b : B)
|
|
end
|
|
what:gettype(true)
|
|
end
|
|
|
|
function B.metamethods.__staticinitialize()
|
|
print("STATIC INIT B")
|
|
end
|
|
|
|
terra foo(b : B)
|
|
end
|
|
|
|
foo:compile() |