From 40339aac62685f08396e0b42f2826f75bbeb25ed Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 20 Jun 2012 00:45:57 +0200 Subject: added another macro regression --- tests/compile/tmacro1.nim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/compile') diff --git a/tests/compile/tmacro1.nim b/tests/compile/tmacro1.nim index e96997c47..52c86e7e9 100755 --- a/tests/compile/tmacro1.nim +++ b/tests/compile/tmacro1.nim @@ -19,3 +19,12 @@ macro test*(a: stmt): stmt = test: "hi" +macro dump(n: stmt): stmt = + dump(n) + if kind(n) == nnkNone: + nil + else: + hint($kind(n)) + for i in countUp(0, len(n)-1): + nil + -- cgit 1.4.1-2-gfad0