summary refs log blame commit diff stats
path: root/tests/patterns/targlist.nim
blob: e416edf0a2450f706801380d90d7c0874ef8406b (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]) = 
  writeln(stdout, x)

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