From aa58701dee09d609b792d1414a092d9e662f37da Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 21 Feb 2018 04:36:00 +0000 Subject: merge revision(s) 62115: [Backport #14421] proc: fix super_method segfault after bind * proc.c: handle undefined iclass [ruby-core:85231] [Bug #14421] From: Eric Wong git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3