summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-19 21:43:18 +0200
committerAraq <rumpf_a@web.de>2012-10-19 21:43:18 +0200
commitac978b32031414e64ec2a148bcc1ff42287e534e (patch)
treee6c248d487a3fe0c026c1a6e3cb163ab10587f13 /tests
parentfc9bfb5eac212f46b39373f9d815d0aa029a6cae (diff)
downloadNim-ac978b32031414e64ec2a148bcc1ff42287e534e.tar.gz
bugfix: tcan_inherit_generic works again
Diffstat (limited to 'tests')
-rw-r--r--tests/compile/tmacroaspragma.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/compile/tmacroaspragma.nim b/tests/compile/tmacroaspragma.nim
new file mode 100644
index 000000000..0e5c352b3
--- /dev/null
+++ b/tests/compile/tmacroaspragma.nim
@@ -0,0 +1,8 @@
+import macros
+
+macro foo(x: stmt): stmt =
+  echo treerepr(callsite())
+  result = newNimNode(nnkStmtList)
+
+proc zoo() {.foo.} = echo "hi"
+