Issue #8236 has been updated by nobu (Nobuyoshi Nakada).

Description updated


----------------------------------------
Bug #8236: super & named parameters bug
https://bugs.ruby-lang.org/issues/8236#change-38380

Author: marcandre (Marc-Andre Lafortune)
Status: Closed
Priority: Normal
Assignee: 
Category: core
Target version: 
ruby -v: r40175


=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



-- 
http://bugs.ruby-lang.org/