fixes #3731
This commit is contained in:
parent
0acdaea334
commit
cbcdf12d2c
3 changed files with 27 additions and 4 deletions
15
tests/vm/tmitems.nim
Normal file
15
tests/vm/tmitems.nim
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue