From 6b9699f0f2e48961af25843eea9b694d043bd352 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Sep 2019 12:53:29 +0200 Subject: Reserve `:` in `case` pattern expression for future match extraction support --- tests/switch/testscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/switch') 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 :3:8: error: unmatched call to no_such_matcher(, ) EOE + +: match-extraction +: +$* <>EOE != 0 +switch 1 +{ + case 1: y + x = $y +} +EOI +:3:9: error: unexpected ':' (match extraction is not yet supported) +EOE -- cgit v1.1