Issue #7922 has been updated by nagachika (Tomoyuki Chikanaga).

Assignee changed from mame (Yusuke Endoh) to nagachika (Tomoyuki Chikanaga)


----------------------------------------
Backport #7922: Keyword arguments bug with unnamed rest
https://bugs.ruby-lang.org/issues/7922#change-36934

Author: marcandre (Marc-Andre Lafortune)
Status: Assigned
Priority: High
Assignee: nagachika (Tomoyuki Chikanaga)
Category: 
Target version: 


We have:

    def foo(**ignore_all_options)
    end

    foo(bar: 42) # => nil, OK
    method(:foo).parameters # => [[:keyrest, :ignore_all_options]], OK

But:

    def foo(**)
    end

    foo(bar: 42) # => ArgumentError: unknown keyword: bar, expected nil
    method(:foo).parameters # => [], expected [[:keyrest]]




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