Project

General

Profile

Actions

Bug #10894

closed

Unamed keyrest argument and a normal keyword argument disallow arbitrary keyword arguments

Added by Eregon (Benoit Daloze) about 9 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p576 (2014-09-19) [x86_64-linux]
[ruby-core:68261]

Description

$ 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 `<main>': 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.

Updated by Eregon (Benoit Daloze) over 8 years ago

  • Status changed from Open to Rejected

Since 2.0.0 only accept security fixes I'll close this.

Actions

Also available in: Atom PDF

Like0
Like0