mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
When there are nested capture variables inside of a pattern match that has an alternation pattern, it is a syntax error. Currently it only adds a syntax error when it is at the top level of the pattern.
5 lines
116 B
Plaintext
5 lines
116 B
Plaintext
1 => [a, b] | 2
|
|
^ variable capture in alternative pattern
|
|
^ variable capture in alternative pattern
|
|
|