mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
15 lines
167 B
Perl
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())
|