Backport #8008
closedsuper's implicit args behavior with keyword args
Description
I thought this sample says "Year!" 3 times, but actually, keyword args are't passed to super.
https://gist.github.com/nov/5075185
Is this intended behavior?
If so, please ignore this issue.
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Category set to core
- Assignee set to nobu (Nobuyoshi Nakada)
- Target version set to 2.1.0
Definitely a bug.
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r39627.
nov, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
compile.c: zsuper keyword args
- compile.c (iseq_compile_each): pass keyword arguments to zsuper,
with current values. [ruby-core:53114] [Bug #8008]
Updated by nobu (Nobuyoshi Nakada) over 11 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 changed from nobu (Nobuyoshi Nakada) to nagachika (Tomoyuki Chikanaga)
- Target version deleted (
2.1.0)
Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
- Status changed from Assigned to Closed
This issue was solved with changeset r39914.
nov, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 39627: [Backport #8008]
* compile.c (iseq_compile_each): pass keyword arguments to zsuper,
with current values. [ruby-core:53114] [Bug #8008]
Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
- Status changed from Closed to Assigned
I'm so sorry r39914 introduce compile error on ruby_2_0_0.
r39627 depend on r39626. I'll merge r39626.
Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
Hmm... r39626 cannot be merged cleanly.
I'll temporary revert r39914.
Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago
- Status changed from Assigned to Closed
This issue was solved with changeset r39917.
nov, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 39625,39626: [Backport #8008]
compile.c: calc in int
* compile.c (iseq_compile_each): calculate argc as int, not as Fixnum.