This commit is contained in:
Andreas Rumpf 2016-04-04 10:16:15 +02:00
commit cbcdf12d2c
3 changed files with 27 additions and 4 deletions

15
tests/vm/tmitems.nim Normal file
View file

@ -0,0 +1,15 @@
discard """
msg: '''13'''
"""
# bug #3731
var list {.compileTime.} = newSeq[int]()
macro calc*(): stmt {.immediate.} =
list.add(1)
for c in list.mitems:
c = 13
for c in list:
echo c
calc()