fixes #1915
This commit is contained in:
parent
c87f1eb581
commit
b9079b8713
8 changed files with 46 additions and 9 deletions
14
tests/template/tparams_gensymed.nim
Normal file
14
tests/template/tparams_gensymed.nim
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue