Project

General

Profile

Actions

Bug #8965

closed

SEGV when a refined method is undefined by undef

Added by shugo (Shugo Maeda) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.1.0dev (2013-09-27 trunk 43073) [i686-linux]
[ruby-dev:47734]

Description

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.

Updated by shugo (Shugo Maeda) about 11 years ago

  • Status changed from Assigned to Closed

I reported this issue to ruby-dev by accident, so refiled as #8966.

Actions

Also available in: Atom PDF

Like0
Like0