aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/for-return
blob: af59736b5f15c92ba2c78299511a916e0b3e535b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
for 1 to 9 as \1
  return
end for

# (for (@ 1 0-3) ‘1’ ‘9’ (.variable ‘\1’)
#   (.inner
#     (return (@ 2 2-8))
#   )
# )
# :2:2–8: error: ‘return’ outside function and macro definition
#    return
#    ^^^^^^