Actions
Bug #22616
closedSystemStackError from `super` when refining a method from a module that appears twice in ancestry
Bug #22616:
SystemStackError from `super` when refining a method from a module that appears twice in ancestry
Description
class C0; end; class C1 < C0; end
module M1; end
c0 = C0.new
c1 = C1.new.extend(M1)
module R1; refine(M1) { def m = super }; end
C0.prepend M1
p c1.singleton_class.ancestors # [#<singleton>, M1, C1, M1, C0, ...]
using R1
c1.m # SystemStackError; should be NoMethodError
c0.m # SystemStackError too, but NoMethodError if the line above is removed
Bisected to 3a66844fa9 [Feature #22309], so trunk-only.
Actions