aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/simplify-tree/valid/map_with_nested_alternation
blob: 434c068d4e7b38e52d2cac8c36102333bdc50491 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[1 [2 3]] : 4

# (map (@ 1 0-0)
#   (.sequence
#     (string (@ 1 1-2) ‘1’)
#   )
#   (.result
#     (string (@ 1 12-13) ‘4’)
#   )
# )
# (map (@ 1 0-0)
#   (.sequence
#     (string (@ 1 4-5) ‘2’)
#   )
#   (.result
#     (string (@ 1 12-13) ‘4’)
#   )
# )
# (map (@ 1 0-0)
#   (.sequence
#     (string (@ 1 6-7) ‘3’)
#   )
#   (.result
#     (string (@ 1 12-13) ‘4’)
#   )
# )
# :1:3–4: warning: alternation inside alternation is unnessary
#  [1 [2 3]] : 4
#     ^