Project

General

Profile

Actions

Backport #8966

closed

SEGV when a refined method is undefined by undef

Added by shugo (Shugo Maeda) over 10 years ago. Updated over 10 years ago.


Description

=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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0