summaryrefslogtreecommitdiffstats
path: root/tests/vm/tstaticprintseq.nim
blob: 99a56d161637f5d760f5e20a5242bc5957e51208 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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