summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2018-06-13 14:12:16 +0100
committerGitHub <noreply@github.com>2018-06-13 14:12:16 +0100
commit518a3e7f737f8b093bee2690503416a1e380b741 (patch)
tree1bccd89e9791764f0517887e0c5d41c5a6ab6025
parent5348fef00326aabbb596b2ee7d0925fe10bbf7c6 (diff)
parent51fdb071cb274530ce865cae2b1e011788ce5c8d (diff)
downloadNim-518a3e7f737f8b093bee2690503416a1e380b741.tar.gz
Merge pull request #8025 from krux02/remove-immediate
fix #5930
-rw-r--r--tests/macros/tmacrostmt.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/macros/tmacrostmt.nim b/tests/macros/tmacrostmt.nim
index 6f648958f..849a32ea3 100644
--- a/tests/macros/tmacrostmt.nim
+++ b/tests/macros/tmacrostmt.nim
@@ -1,5 +1,5 @@
 import macros
-macro case_token(n: untyped): untyped {.immediate.} =
+macro case_token(n: varargs[untyped]): untyped =
   # creates a lexical analyzer from regular expressions
   # ... (implementation is an exercise for the reader :-)
   nil
@@ -21,6 +21,6 @@ case_token: inc i
 macro foo: typed =
   var exp = newCall("whatwhat", newIntLitNode(1))
   if compiles(getAst(exp)): return exp
-  else: echo "Does not compute!"
+  else: echo "Does not compute! (test OK)"
 
 foo()