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

@ -24,7 +24,7 @@ bb
const s = @[1,2,3]
macro foo: typed =
macro foo() =
for e in s:
echo e
@ -55,7 +55,7 @@ static:
var m2: TData = data
for x in m2.numbers: echo x
macro ff(d: static[TData]): typed =
macro ff(d: static[TData]) =
for x in d.letters:
echo x