[ruby-cvs:60657] nobu:r53495 (trunk): compile.c: fix lhs splat in massign

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Jan 10 20:57:51 JST 2016


nobu	2016-01-10 20:57:51 +0900 (Sun, 10 Jan 2016)

  New Revision: 53495

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53495

  Log:
    compile.c: fix lhs splat in massign
    
    * compile.c (compile_massign_lhs): when index ends with splat,
      append rhs value to it like POSTARG, since VM_CALL_ARGS_SPLAT
      splats the last argument only.  [ruby-core:72777] [Bug #11970]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/test/ruby/test_assignment.rb


More information about the ruby-cvs mailing list