Project

General

Profile

Bug #7665

keyrest argument overwrites the last element of rest argument

Added by nobu (Nobuyoshi Nakada) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
r38718
Backport:
[ruby-core:51278]

Description

=begin
Since r38657, this code
def foo(*args, **opt)
p args, opt
end

foo("foo", "bar", zzz: 42)

shows
["foo", {:zzz=>42}]
{:zzz=>42}

but the first line should be (({["foo", "bar"]})).
=end


Related issues

Related to Ruby master - Bug #7630: Proc/block doesn't take keyword argumentsClosedktsj (Kazuki Tsujimoto)12/28/2012Actions

Also available in: Atom PDF