[ruby-cvs:69966] nobu:r62832 (trunk): parse.y: fix duplicate kwrest

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Mar 19 12:16:40 JST 2018


nobu	2018-03-19 12:16:40 +0900 (Mon, 19 Mar 2018)

  New Revision: 62832

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

  Log:
    parse.y: fix duplicate kwrest
    
    * parse.y (f_kwrest): add the variable name as an argument, as
      well as an internal variable.
    
    * parse.y (new_args_tail): now keyword rest argument variable is
      always placed between keyword arguments and block argument, so
      so just reorder required and optional keyword arguments.  no
      longer kwrest duplicates.

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list