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



                      
                                         

                                       

                      
discard """
  output: "12false3ha"
"""

proc f(x: varargs[string, `$`]) = discard
template optF{f(x)}(x: varargs[expr]) =
  writeLine(stdout, x)

f 1, 2, false, 3, "ha"