From: xtkoba+ruby@... Date: 2021-03-18T04:35:49+00:00 Subject: [ruby-core:102911] [Ruby master Bug#17725] Prepend breaks ability to override optimized methods Issue #17725 has been updated by xtkoba (Tee KOBAYASHI). FWIW, ```ruby # bug17725-test.rb eval < blah blah ``` ``` ruby module Dummy; end String.prepend(Dummy) class String alias_method(:old_plus, :+) def + other puts 'blah blah' old_plus(other) end end 'a' + 'b' > ``` Prepending after an `alias` does not affect the previous `alias` -- https://bugs.ruby-lang.org/ Unsubscribe: