aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-09-30 12:53:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-09-30 15:30:45 +0200
commit6b9699f0f2e48961af25843eea9b694d043bd352 (patch)
tree6989edc16eb0690480d556aae6b83588d495a132 /tests
parent12268f7741ba73c75a73fafb6063f1393e485aae (diff)
Reserve `:` in `case` pattern expression for future match extraction support
Diffstat (limited to 'tests')
-rw-r--r--tests/switch/testscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/switch/testscript b/tests/switch/testscript
index c8adaf0..f6c3753 100644
--- a/tests/switch/testscript
+++ b/tests/switch/testscript
@@ -312,3 +312,15 @@ switch 1: no_such_matcher
EOI
<stdin>:3:8: error: unmatched call to no_such_matcher(<untyped>, <untyped>)
EOE
+
+: match-extraction
+:
+$* <<EOI 2>>EOE != 0
+switch 1
+{
+ case 1: y
+ x = $y
+}
+EOI
+<stdin>:3:9: error: unexpected ':' (match extraction is not yet supported)
+EOE