Issue #5989 has been updated by Nobuyoshi Nakada.

Status changed from Closed to Open
% Done changed from 100 to 20


----------------------------------------
Bug #5989: Keyword spash is syntax error when there are no explicit keyword arguments
https://bugs.ruby-lang.org/issues/5989

Author: Yura Sokolov
Status: Open
Priority: Normal
Assignee: Yusuke Endoh
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-02-09 trunk 34505) [i686-linux]


    $ ruby -e 'def a(a:1, **h); p h; end; a(b: 1)'
    {:b=>1}
    $ ruby -e 'def a(**h); p h; end; a(b: 1)'
    -e:1: syntax error, unexpected tPOW, expecting ')'
    def a(**h); p h; end
            ^



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