From 467ebbebd9b5a6a950bc2c52eb393ba9401ed826 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Tue, 1 Oct 2024 14:21:32 -0400 Subject: [ruby/prism] Disallow dynamic patterns in labels at top level followed by pipes https://github.com/ruby/prism/commit/ccc746f918 --- test/prism/errors/dynamic_label_pattern.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/prism/errors/dynamic_label_pattern.txt (limited to 'test/prism/errors') diff --git a/test/prism/errors/dynamic_label_pattern.txt b/test/prism/errors/dynamic_label_pattern.txt new file mode 100644 index 0000000000..b8d1012e45 --- /dev/null +++ b/test/prism/errors/dynamic_label_pattern.txt @@ -0,0 +1,3 @@ +:a => 'a': | 1 + ^ expected a pattern expression after the key + -- cgit v1.2.3