diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2025-05-19 13:14:59 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-07-16 18:12:06 +0000 |
| commit | 133cf95618e687bfac6575e2daa1ce0a40e6f2e5 (patch) | |
| tree | f819a42081a59e5dae26381adddc5e3a70a5878e /test/prism/errors | |
| parent | ccbbe06a0277db74cfbf7dc1f26722cbf4904b72 (diff) | |
[ruby/prism] [Bug #21345] Fix accepting multiple rest patterns with leading match
Related:
* https://bugs.ruby-lang.org/issues/20765
* https://github.com/ruby/prism/issues/2915
https://github.com/ruby/prism/commit/de56fa4a34
Diffstat (limited to 'test/prism/errors')
| -rw-r--r-- | test/prism/errors/pattern_match_implicit_rest.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/prism/errors/pattern_match_implicit_rest.txt b/test/prism/errors/pattern_match_implicit_rest.txt new file mode 100644 index 0000000000..8602c0add0 --- /dev/null +++ b/test/prism/errors/pattern_match_implicit_rest.txt @@ -0,0 +1,3 @@ +a=>b, *, + ^ expected a pattern expression after `,` + |
