Actions
Bug #8139
closedkeyreq and keyrest
Bug #8139:
keyreq and keyrest
Description
=begin
Passing a hash without required key (:keyreq) to a method which takes keyreq: and **keyrest,
then a same hash is set to both keyreq and keyrest.
def m(keyreq:, **keyrest)
[keyreq, keyrest]
end
m(keyreq: 1, keyrest: 2) # => [1, {:keyrest => 2}] OK
m(unknown: 3) # => [{:unknown=>3}, {:unknown=>3}] ??
=end
Actions