Actions
Bug #10731
closedSegmentation fault when create alias to refined method
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-01-12 trunk 49218) [x86_64-darwin14]
Backport:
Description
following code cause segmentation fault, both foo
and bar
is not defined in refined class, in trunk and 2.2.0, 2.1.5, 2.0.0
class C
end
module RefinementBug
refine C do
def foo
end
def bar
end
end
end
class C
alias foo bar
end
it should be raise a NameError if the original method of the refined method is not exist, like undef (#8966).
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0