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



               
 

           
 
                                      




                        

 
                                                    


                                     
          
                                       
discard """
action: compile
"""


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 true:
  assert test_in(ret2, "test", str_val)