Project

General

Profile

Bug #16748

Updated by mame (Yusuke Endoh) over 5 years ago

In Ruby 2.5.5 i get what i'm expecting 
 ```ruby 
 test = -> (one, two) { one } 
 [['one', 'two']].map(&test) 
 => ["one"] 
 ``` 

 In Ruby 2.7.0 this doesn't work 
 ```ruby 
 test = -> (one, two) { one } 
 [['one', 'two']].map(&test) 
 wrong number of arguments (given 1, expected 2) (ArgumentError) 
 ```

Back