diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-10-24 00:57:26 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-11-14 21:03:04 +0900 |
| commit | f4b6a5191ceb0ed0cd7a3e3c8bab24cc0dd15736 (patch) | |
| tree | 8b25e2ca6674ee51a4d1b306c5df392c128d85bc /spec/ruby | |
| parent | 6f18898f4902b2717442f9bef4faa876d58f99de (diff) | |
[Feature #21572] Syntax error at capture in alternation pattern
Should fail even with `-c` option.
Diffstat (limited to 'spec/ruby')
| -rw-r--r-- | spec/ruby/language/pattern_matching_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/language/pattern_matching_spec.rb b/spec/ruby/language/pattern_matching_spec.rb index cb4f5864d7..c1a6f0e4d6 100644 --- a/spec/ruby/language/pattern_matching_spec.rb +++ b/spec/ruby/language/pattern_matching_spec.rb @@ -493,7 +493,7 @@ describe "Pattern matching" do in [0, 0] | [0, a] end RUBY - }.should raise_error(SyntaxError, /illegal variable in alternative pattern/) + }.should raise_error(SyntaxError) end it "support underscore prefixed variables in alternation" do |
