mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user