aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation
blob: 68380355b76d563f70c02dc025d4b4a57aaed2a8 (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
[1 .] . . : 2

# (map (@ 1 0-0)
#   (.sequence
#     (string (@ 1 1-2) ‘1’)
#   )
#   (.result
#     (string (@ 1 12-13) ‘2’)
#   )
# )
# (map (@ 1 0-0)
#   (.sequence
#     (nothing (@ 1 3-4))
#   )
#   (.result
#     (string (@ 1 12-13) ‘2’)
#   )
# )
# :1:6–7: warning: ‘.’ outside alternation has no effect
#  [1 .] . . : 2
#        ^
# :1:8–9: warning: ‘.’ outside alternation has no effect
#  [1 .] . . : 2
#          ^
# :1:3–4: error: mapping of null sequence
#  [1 .] . . : 2
#     ^