Files
Nim/tests/template/thygienictempl.nim
2017-07-25 09:28:23 +02:00

19 lines
262 B
Nim

var
e = "abc"
raise newException(IOError, e & "ha!")
template t() = echo(foo)
var foo = 12
t()
template test_in(a, b, c: untyped): bool {.dirty.} =
var result {.gensym.}: bool = false
false
when isMainModule:
assert test_in(ret2, "test", str_val)