Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
This commit is contained in:
commit
94e444c90f
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