Actions
Bug #19166
closedModule#remove_method can change frozen modules when there is a prepended module
    Bug #19166:
    Module#remove_method can change frozen modules when there is a prepended module
  
Description
module A
  prepend Module.new # remove this line and you'd get FrozenError as expected
  def foo; end
  freeze
  remove_method :foo # remove works even though module is frozen!
  p instance_methods(false) # => []
end
Old bug, reproduces in 2.7 through 3.1 and on master. Found while investigating #19164.
Actions
        
        
     Updated by Anonymous
          Updated by Anonymous