From: eregontp@... Date: 2015-10-12T13:12:28+00:00 Subject: [ruby-core:71061] [Ruby trunk - Bug #10894] [Rejected] Unamed keyrest argument and a normal keyword argument disallow arbitrary keyword arguments Issue #10894 has been updated by Benoit Daloze. Status changed from Open to Rejected Since 2.0.0 only accept security fixes I'll close this. ---------------------------------------- Bug #10894: Unamed keyrest argument and a normal keyword argument disallow arbitrary keyword arguments https://bugs.ruby-lang.org/issues/10894#change-54428 * Author: Benoit Daloze * Status: Rejected * Priority: Normal * Assignee: * ruby -v: ruby 2.0.0p576 (2014-09-19) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- $ ruby -ve 'def m(a:1,**);end; p m(a:1,b:2)' ruby 2.0.0p576 (2014-09-19) [x86_64-linux] -e:1:in `
': unknown keyword: b (ArgumentError) I searched to find out if it was reported but I did not find anything. Can you confirm it is a bug? 2.1+ are not affected. -- https://bugs.ruby-lang.org/