Backport #8416

super does not forward either named or anonymous **

Added by First Last 11 months ago. Updated 11 months ago.

[ruby-core:55033]
Status:Closed
Priority:High
Assignee:Tomoyuki Chikanaga

Description

irb(main):015:0> class Super; def self.foo(h); h; end; end; class Sub < Super; def self.foo(); super; end; end; Sub.foo(a: 1)
=> {}

Associated revisions

Revision 41051
Added by Tomoyuki Chikanaga 11 months ago

merge revision(s) 40807: [Backport #8416]

* compile.c (iseq_compile_each): forward anonymous and first keyword
  rest argument one.   [Bug #8416].

History

#1 Updated by Marc-Andre Lafortune 11 months ago

  • Category set to core
  • Assignee set to Nobuyoshi Nakada
  • Priority changed from Normal to High

#2 Updated by Nobuyoshi Nakada 11 months ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 2.0.0: REQUIRED

#3 Updated by Nobuyoshi Nakada 11 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40807.
First, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


compile.c: forward kwrest

  • compile.c (iseqcompileeach): forward anonymous and first keyword rest argument one. [Bug #8416].

#4 Updated by Tomoyuki Chikanaga 11 months ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (core)
  • Status changed from Closed to Assigned
  • Assignee changed from Nobuyoshi Nakada to Tomoyuki Chikanaga

#5 Updated by Tomoyuki Chikanaga 11 months ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r41051.
First, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 40807: [Backport #8416]

* compile.c (iseq_compile_each): forward anonymous and first keyword
  rest argument one.   [Bug #8416].

Also available in: Atom PDF