summary refs log tree commit diff stats
path: root/tests/ccgbugs
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-05-21 21:31:40 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-21 21:31:40 +0200
commitf94ec363abf5b1393014a0bca7202c405512cddd (patch)
tree54f54dfe076dfa9e70af430521c574517edddb7d /tests/ccgbugs
parent68b5e3e3fe8c4bf314d31d18c147650db99b4f7d (diff)
downloadNim-f94ec363abf5b1393014a0bca7202c405512cddd.tar.gz
Allow void macro result (#11286)
* allow void macro result
* add test for void macro result type
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r--tests/ccgbugs/tnocodegen_for_compiletime.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ccgbugs/tnocodegen_for_compiletime.nim b/tests/ccgbugs/tnocodegen_for_compiletime.nim
index b44e9f8c9..3a952e303 100644
--- a/tests/ccgbugs/tnocodegen_for_compiletime.nim
+++ b/tests/ccgbugs/tnocodegen_for_compiletime.nim
@@ -1,7 +1,7 @@
 # bug #1679
 import macros, tables, hashes
 proc hash(v: NimNode): Hash = 4  # performance is for suckers
-macro test(body: untyped): typed =
+macro test(body: untyped) =
   var a = initCountTable[NimNode]()
   a.inc(body)