From: "no6v (Nobuhiro IMAI)" Date: 2013-03-22T00:17:59+09:00 Subject: [ruby-core:53608] [ruby-trunk - Bug #8139][Open] keyreq and keyrest Issue #8139 has been reported by no6v (Nobuhiro IMAI). ---------------------------------------- Bug #8139: keyreq and keyrest https://bugs.ruby-lang.org/issues/8139 Author: no6v (Nobuhiro IMAI) Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: ruby 2.1.0dev (2013-03-21 trunk 39858) [x86_64-linux] =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 -- http://bugs.ruby-lang.org/