diff options
author | Araq <rumpf_a@web.de> | 2012-06-20 00:45:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-06-20 00:45:57 +0200 |
commit | 40339aac62685f08396e0b42f2826f75bbeb25ed (patch) | |
tree | 014a40eaab28ceb7e9744b07302a0aea8402eb99 /tests/compile | |
parent | 39137294a37b769eec7b610520bf67cb47e437e8 (diff) | |
download | Nim-40339aac62685f08396e0b42f2826f75bbeb25ed.tar.gz |
added another macro regression
Diffstat (limited to 'tests/compile')
-rwxr-xr-x | tests/compile/tmacro1.nim | 9 |
1 files changed, 9 insertions, 0 deletions
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 + |