mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
9 lines
166 B
Perl
9 lines
166 B
Perl
struct A {
|
|
}
|
|
A.metamethods.__getmethod = function(self,idx)
|
|
return tonumber(string.sub(idx,2,-1))
|
|
end
|
|
terra foo()
|
|
return A.f33 + A.b34
|
|
end
|
|
assert(67 == foo()) |