Actions
Bug #16748
closedDifferent behaviour between a hash and multi-Array when passing 2 arguments to a proc
Bug #16748:
Different behaviour between a hash and multi-Array when passing 2 arguments to a proc
Description
In Ruby 2.5.5 i get what i'm expecting
test = -> (one, two) { one }
[['one', 'two']].map(&test)
=> ["one"]
In Ruby 2.7.0 this doesn't work
test = -> (one, two) { one }
[['one', 'two']].map(&test)
wrong number of arguments (given 1, expected 2) (ArgumentError)
Files
Actions