summary refs log tree commit diff stats
path: root/tests/template/thygienictempl.nim
blob: de40450aad3f2ebc70b729b92bfef03419037c9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)