Project

General

Profile

Backport #8236

super & named parameters bug

Added by marcandre (Marc-Andre Lafortune) over 6 years ago. Updated over 6 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

Associated revisions

Revision f4c52b48
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 40205
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Revision 40205
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Revision 40205
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Revision 40205
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Revision 40205
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Revision 40205
Added by nobu (Nobuyoshi Nakada) over 6 years ago

compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Revision a569165d
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 40205: [Backport #8236]

    * compile.c (iseq_compile_each): append keyword hash to argument array
      to splat if needed.  [ruby-core:54094] [Bug #8236]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 40379
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

merge revision(s) 40205: [Backport #8236]

* compile.c (iseq_compile_each): append keyword hash to argument array
  to splat if needed.  [ruby-core:54094] [Bug #8236]

History

#1

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

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

This issue was solved with changeset r40205.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


compile.c: append keyword hash to splat

  • compile.c (iseq_compile_each): append keyword hash to argument array to splat if needed. [ruby-core:54094] [Bug #8236]

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Description updated (diff)
#3

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport200
  • Category deleted (core)
  • Status changed from Closed to Assigned
  • Assignee set to nagachika (Tomoyuki Chikanaga)
#4

Updated by nagachika (Tomoyuki Chikanaga) over 6 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r40379.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 40205: [Backport #8236]

* compile.c (iseq_compile_each): append keyword hash to argument array
  to splat if needed.  [ruby-core:54094] [Bug #8236]

Also available in: Atom PDF