diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-02-13 17:52:28 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-02-13 17:52:28 -0800 |
| commit | 82f7cb794109794f6ffa95ffb3be8e5149dd74bd (patch) | |
| tree | dc95f6454c938fa5f8e41346a4db32aa6570d561 /test/ruby/test_variable.rb | |
| parent | 68013d43a35a8368caa7b30c501e270333d04b35 (diff) | |
merge revision(s) ad96c5a72908042489357b73dc936c4bc38d919b, ca81142eff98cccb03ff523322aefe4e7346fd0e: [Backport #21010]
[ruby/prism] Throw syntax error for endless method with `[]=`
Prism shoudld throw a syntax error for endless methods when the method
name uses brackets. Previously it would not. This matches the behavior
of parse.y.
Fixes https://bugs.ruby-lang.org/issues/21010
https://github.com/ruby/prism/commit/43c16a89ef
[ruby/prism] [Bug #21010] Reject endless method definition of `[]=`
Fixes: https://bugs.ruby-lang.org/issues/20785
https://github.com/ruby/prism/commit/192960ce5d
Diffstat (limited to 'test/ruby/test_variable.rb')
0 files changed, 0 insertions, 0 deletions
