1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_insnhelper.c (vm_call_method): revert r30064 and r30071,

because of [ruby-core:26761]. Bug#4106 rejected.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-03 23:25:19 +00:00
parent b95ce36ed4
commit b942e7891a
3 changed files with 9 additions and 22 deletions

View file

@ -411,25 +411,4 @@ class TestMethod < Test::Unit::TestCase
assert_nothing_raised { v.instance_eval { mv2 } }
assert_nothing_raised { v.instance_eval { mv3 } }
end
def test_protected_singleton
bug4106 = '[ruby-core:33506]'
a = Class.new do
def meth
:called
end
def test
a = dup
a.extend(Module.new)
a.extend(Module.new)
class << a
protected :meth
end
a.meth
end
end.new
called = nil
assert_nothing_raised(NoMethodError, bug4106) {called = a.test}
assert_equal(:called, called, bug4106)
end
end