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
on 2013-03-21 16:18
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.