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

17 lines
219 B
Perl

terra haserror()
return (1):foo()
end
local m = macro(function()
local success = pcall(function() haserror:compile() end)
assert(not success)
return 1
end)
terra noerror()
return m()
end
assert(1 == noerror())