Project

General

Profile

Backport #8236

super & named parameters bug

Added by marcandre (Marc-Andre Lafortune) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:54094]

Description

=begin
class Base
def foo(*args)
p args
end
end

class A < Base
def foo(arg, bar: 'x')
super
end
end
A.new.foo 42 # => 42, {:bar=>"x"}

class B < Base
def foo(*args, bar: 'x')
super
end
end
B.new.foo 42 # => [42], [:bar, "x"]
=end

Also available in: Atom PDF