added another macro regression

This commit is contained in:
Araq 2012-06-20 00:45:57 +02:00
commit 40339aac62
2 changed files with 10 additions and 1 deletions

View file

@ -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