Issue #7922 has been reported by marcandre (Marc-Andre Lafortune).

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

Author: marcandre (Marc-Andre Lafortune)
Status: Open
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: next minor
ruby -v: r39390


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/