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

15 lines
167 B
Perl

local bar2 = macro(function(typ)
return typ
end)
terra foo() : int
var a = 3
bar2(a) = bar2(a) + 5
return a
end
local test = require("test")
test.eq(8,foo())