summary refs log blame commit diff stats
path: root/tests/template/thygienictempl.nim
blob: 3cdbac40e5e1843fcc91067799111b8fb8196500 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                  







                                                            
    
var
  e = "abc"
    
raise newException(EIO, e & "ha!")

template t() = echo(foo)

var foo = 12
t()


template test_in(a, b, c: expr): bool {.immediate, dirty.} =
  var result {.gensym.}: bool = false
  false

when isMainModule:
  assert test_in(ret2, "test", str_val)