From: Yura Sokolov Date: 2012-02-09T14:15:55+09:00 Subject: [ruby-core:42455] [ruby-trunk - Bug #5989][Open] Keyword spash is syntax error when there are no explicit keyword arguments Issue #5989 has been reported by Yura Sokolov. ---------------------------------------- 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: 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/