[ruby-core:68261] [Ruby trunk - Bug #10894] [Open] Unamed keyrest argument and a normal keyword argument disallow arbitrary keyword arguments

From: eregontp@...
Date: 2015-02-23 15:12:57 UTC
List: ruby-core #68261
Issue #10894 has been reported by Benoit Daloze.

----------------------------------------
Bug #10894: Unamed keyrest argument and a normal keyword argument disallow arbitrary keyword arguments
https://bugs.ruby-lang.org/issues/10894

* Author: Benoit Daloze
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.0.0p576 (2014-09-19) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
    $ ruby -ve 'def m(a:1,**);end; p m(a:1,b:2)'
    ruby 2.0.0p576 (2014-09-19) [x86_64-linux]
    -e:1:in `<main>': unknown keyword: b (ArgumentError)

I searched to find out if it was reported but I did not find anything.

Can you confirm it is a bug?
2.1+ are not affected.



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

In This Thread

Prev Next