summary refs log tree commit diff stats
path: root/tests/macros/tmacro_in_template.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/macros/tmacro_in_template.nim')
-rw-r--r--tests/macros/tmacro_in_template.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/macros/tmacro_in_template.nim b/tests/macros/tmacro_in_template.nim
new file mode 100644
index 000000000..8f7753cea
--- /dev/null
+++ b/tests/macros/tmacro_in_template.nim
@@ -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