From ac978b32031414e64ec2a148bcc1ff42287e534e Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 19 Oct 2012 21:43:18 +0200 Subject: bugfix: tcan_inherit_generic works again --- tests/compile/tmacroaspragma.nim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/compile/tmacroaspragma.nim (limited to 'tests') 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" + -- cgit 1.4.1-2-gfad0