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

8 lines
148 B
Perl

local x = setmetatable({a = 4}, { __toterraexpression = function(self) return self.a end})
local terra foo()
return x
end
assert(foo() == 4)