summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/intersection_spec.rb
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2025-10-08 14:54:14 +0200
committergit <svn-admin@ruby-lang.org>2025-10-08 13:04:57 +0000
commitb8f8d646a64f883652b44780c4174a85f98d1c82 (patch)
treebf9c41286bc86e850c39eb72ebe4cf0ed2f0281b /spec/ruby/core/array/intersection_spec.rb
parent7c9dd0ecff61153b96473c6c51d5582e809da489 (diff)
[ruby/prism] For these special cases, there exists no optional argument type. Since a endless method is started with `=`, there was ambiguity here. We have to simply reject these in all cases.
This adds a new error for the following reason: * `def foo arg = nil` is interpreted as a normal method call with optional `arg` without matching `end` * `def foo *arg = nil; end` is interpreted as a endless method call that has body `nil` with extraneous `end` `def foo *arg = nil` is somewhere inbetween and I don't know how to otherwise indicate the error. Now the second case above also shows the newly added error message. Fixes [Bug #21623] https://github.com/ruby/prism/commit/e1910d4492
Diffstat (limited to 'spec/ruby/core/array/intersection_spec.rb')
0 files changed, 0 insertions, 0 deletions