aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/if-else-break
blob: 0e8ae81292e3dc135570ca3a6f90fa629153b4c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if 1
  if 0
  else
    break
  end if
end if

# (if (@ 1 0-2) ‘1’
#   (.inner
#     (if (@ 2 2-4) ‘0’
#       (.inner nil)
#       (.otherwise
#         (break (@ 4 4-9))
#       )
#     )
#   )
#   (.otherwise nil)
# )
# :4:4–9: error: ‘break’ outside ‘for’
#      break
#      ^^^^^