Project

General

Profile

Backport #8966

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

=begin 
 The following code causes SEGV: 

   module Foo 
     refine Object do 
       def foo 
         puts "foo" 
       end 
     end 
   end 
  
   using Foo 
  
   class Object 
     undef foo 
   end 
  
   foo 

 I guess undef is not aware of refinements. 
 =end

Back