aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation
diff options
context:
space:
mode:
Diffstat (limited to 'test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation')
-rw-r--r--test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation28
1 files changed, 28 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation b/test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation
new file mode 100644
index 0000000..6838035
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/invalid/map_from_nothingness_by_alternation
@@ -0,0 +1,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
+# ^
+