Joseph Jones liked your message with Boxer. On December 17, 2015 at 20:12:01 MST, shugo / ruby-lang.org wrote:Issue #11836 has been updated by Shugo Maeda.Subject changed from Optimized methods cannot overridden afterModule#prepend to Optimized methods cannot be overridden after Module#prependBackport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: REQUIRED, 2.2: REQUIRED----------------------------------------Bug #11836: Optimized methods cannot be overridden after Module#prependhttps://bugs.ruby-lang.org/issues/11836#change-55642* Author: Shugo Maeda* Status: Closed* Priority: Normal* Assignee: * ruby -v: * Backport: 2.0.0: DONTNEED, 2.1: REQUIRED, 2.2: REQUIRED----------------------------------------It seems that optimized methods cannot overridden after `Module#prepend`.```rubymodule M def /(other) quo(other) endendclass Fixnum prepend Mendmodule M def %(other) 0 end def fooputs "m#foo" endendp 1 / 2 #=> (1/2) overriddenp 1 % 2 #=>1 not overridden1.foo #=> m#foo overridden```Is there any good way to disable optimization in this case?-- https://bugs.ruby-lang.org/