diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-07 08:07:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-07 08:07:58 +0000 |
commit | 6b7c4dfa6776083517564850032609618acbb710 (patch) | |
tree | 20554aa62bfc1e53df15ed174e3696663b472e60 /test | |
parent | 95c84eac49064986bfd877ccf4d7e91e9929e833 (diff) | |
download | ruby-6b7c4dfa6776083517564850032609618acbb710.tar.gz |
proc.c: fix for uncallable method
* proc.c (method_super_method): uncallable method entry does not
have the defined class, use the owner instead.
[ruby-core:70254] [Bug #11419]
* test/ruby/test_method.rb (test_super_method_unbound): add test
by Akira Matsuda.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_method.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index b7b140d9a0..da893b0646 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -868,6 +868,11 @@ class TestMethod < Test::Unit::TestCase assert_equal(Base.instance_method(:foo), m, Feature9781) m = assert_nothing_raised(NameError, Feature9781) {break m.super_method} assert_nil(m, Feature9781) + + bug11419 = '[ruby-core:70254]' + m = Object.instance_method(:tap) + m = assert_nothing_raised(NameError, bug11419) {break m.super_method} + assert_nil(m, bug11419) end def test_super_method_module |