whitequark / parser

A Ruby parser.
Other
1.57k stars 197 forks source link

add tests for duplicate variable name check with p_rest #966

Closed iliabylich closed 8 months ago

iliabylich commented 8 months ago

Closes https://github.com/whitequark/parser/issues/921.

We already reject duplicate variable in pattern-matching like 0 => [a, *a] and bugs are not back-ported to previous versions of parser, so this PR only includes tests.