diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2022-03-30 11:03:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-30 11:03:56 -0700 |
| commit | fbaadd1cfe7fbfd1b904f193f99d7c845a6ed804 (patch) | |
| tree | 298c1393d770cc229d731b43ac13c793dcd93a36 /spec/ruby/core/array/shared/difference.rb | |
| parent | 75efbb98afe854972a1c832ec5d4d66639c41c74 (diff) | |
Do not autosplat array in block call just because keywords accepted
If the block only accepts a single positional argument plus keywords,
then do not autosplat. Still autosplat if the block accepts more
than one positional argument in addition to keywords.
Autosplatting a single positional argument plus keywords made sense
in Ruby 2, since a final positional hash could be used as keywords,
but it does not make sense in Ruby 3.
Fixes [Bug #18633]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5665
Merged-By: jeremyevans <code@jeremyevans.net>
Diffstat (limited to 'spec/ruby/core/array/shared/difference.rb')
0 files changed, 0 insertions, 0 deletions
