ruby/test/prism/errors/pattern-capture-in-alt-array.txt
Kevin Newton 8d0105824f Handle deeply nested capture variables syntax err
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.
2025-11-16 21:30:24 -05:00

5 lines
116 B
Plaintext

1 => [a, b] | 2
^ variable capture in alternative pattern
^ variable capture in alternative pattern