Bug #2422: splat operator fails on array of 1 element
http://redmine.ruby-lang.org/issues/show/2422

Author: Raul Parolari
Status: Open, Priority: Normal
Category: core
ruby -v: 1.9.1

In Ruby 1.9.1:

a, b = *[ 137, 271 ]  #  a = 137; b = 271  # (as expected)

a    = *[ 137 ]      # a = [137 ]   #  (should be 137 !)

Definition of splat (Matz & Flanagan book, p.98): "the array elements replace the array in the original rvalue". 
Works as defined in Ruby 1.8; fails in 1.9.1


----------------------------------------
http://redmine.ruby-lang.org