This project is closed and read-only.
Actions
Backport #8236
closedsuper & named parameters bug
Backport #8236:
super & named parameters bug
Status:
Closed
Assignee:
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"}] (ok)
class B < Base
def foo(*args, bar: 'x')
super
end
end
B.new.foo 42 # => [[42], [:bar, "x"]] (not ok, should be same)
=end
Actions