failing test case for static evaluation
This commit is contained in:
parent
1ce30b9e10
commit
016492375f
1 changed files with 21 additions and 0 deletions
21
tests/vm/tstaticprintseq.nim
Normal file
21
tests/vm/tstaticprintseq.nim
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
discard """
|
||||||
|
msg: '''1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3'''
|
||||||
|
"""
|
||||||
|
|
||||||
|
const s = @[1,2,3]
|
||||||
|
|
||||||
|
macro foo: stmt =
|
||||||
|
for e in s:
|
||||||
|
echo e
|
||||||
|
|
||||||
|
foo()
|
||||||
|
|
||||||
|
static:
|
||||||
|
for e in s:
|
||||||
|
echo e
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue