Remove expr/stmt (#5857)

This commit is contained in:
Arne Döring 2017-07-25 09:28:23 +02:00 • committed by Andreas Rumpf
commit 000b8afd26
168 changed files with 497 additions and 529 deletions

View file

@ -7,7 +7,7 @@ discard """
# bug #3731
var list {.compileTime.} = newSeq[int]()
macro calc*(): stmt {.immediate.} =
macro calc*(): typed =
list.add(1)
for c in list.mitems:
c = 13
@ -19,7 +19,7 @@ calc()
# bug #3859
import macros
macro m: stmt =
macro m: typed =
var s = newseq[NimNode](3)
# var s: array[3,NimNode] # not working either
for i in 0..<s.len: s[i] = newLit(3) # works