Allow void macro result (#11286)

* allow void macro result
* add test for void macro result type
This commit is contained in:
Arne Döring 2019-05-21 21:31:40 +02:00 • committed by Andreas Rumpf
commit f94ec363ab
25 changed files with 143 additions and 60 deletions

View file

@ -34,7 +34,7 @@ block t898:
block t7528:
macro bar(n: untyped): typed =
macro bar(n: untyped) =
result = newNimNode(nnkStmtList, n)
result.add(newCall("write", newIdentNode("stdout"), n))