fixes #1944
This commit is contained in:
parent
d3a8d5b173
commit
5f6131cbdc
4 changed files with 36 additions and 13 deletions
10
tests/macros/tmacro_in_template.nim
Normal file
10
tests/macros/tmacro_in_template.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# bug #1944
|
||||
import macros
|
||||
|
||||
template t(e: expr): stmt =
|
||||
macro m(eNode: expr): stmt =
|
||||
echo eNode.treeRepr
|
||||
m e
|
||||
|
||||
t 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue