This commit is contained in:
Araq 2015-01-12 01:43:25 +01:00
commit b9079b8713
8 changed files with 46 additions and 9 deletions

View file

@ -0,0 +1,14 @@
# bug #1915
import macros
# Test that parameters are properly gensym'ed finally:
template genNodeKind(kind, name: expr): stmt =
proc name*(children: varargs[PNimrodNode]): PNimrodNode {.compiletime.}=
result = newNimNode(kind)
for c in children:
result.add(c)
genNodeKind(nnkNone, None)