diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-03 13:36:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-03 13:36:49 +0000 |
commit | 7b0b9df60ec0fff1463b235779ad48cb8897956a (patch) | |
tree | 5276ac2a1667e9847819e347a35f4d6eb9e21d1e /test/ruby/test_method.rb | |
parent | 9e3e0ca3fe5dbfb611445f266f30f72bc06fe3de (diff) | |
download | ruby-7b0b9df60ec0fff1463b235779ad48cb8897956a.tar.gz |
* vm_insnhelper.c (vm_call_method): protected methods should be
checked against the real class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r-- | test/ruby/test_method.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 2f3ba3ebd6..e5177d6217 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -420,6 +420,8 @@ class TestMethod < Test::Unit::TestCase end def test a = dup + a.extend(Module.new) + a.extend(Module.new) class << a protected :meth end |