diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 19:35:12 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 19:35:12 +0000 |
commit | b10b51225e039ccddd0ae1e68b66f731bfd8e40c (patch) | |
tree | d0c5565298dcc467af9645c4bb1e54ada25303f6 /test/ruby/test_method.rb | |
parent | 1bb98357c92d16679c4aee2d13d1c931909cbd92 (diff) |
proc: fix super_method segfault after bind
* proc.c: handle undefined iclass
[ruby-core:85231] [Bug #14421]
From: Eric Wong <e@80x24.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
-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 e016662375..0ef913fd78 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -926,6 +926,11 @@ class TestMethod < Test::Unit::TestCase assert_equal(m1.source_location, m2.source_location, bug) end + def test_super_method_after_bind + assert_nil String.instance_method(:length).bind(String.new).super_method, + '[ruby-core:85231] [Bug #14421]' + end + def rest_parameter(*rest) rest end |