Project

General

Profile

Bug #6907 ยป fail.patch

tenderlovemaking (Aaron Patterson), 08/23/2012 05:54 AM

View differences:

test/ruby/test_super.rb
334 334
    }
335 335
    assert_equal 'hi', y.hello
336 336
  end
337

  
338
  def test_super_in_thread
339
    hoge = Class.new {
340
      def bar; 'hoge'; end
341
    }
342
    foo = Class.new(hoge) {
343
      def bar; Thread.new { super }.join.value; end
344
    }
345

  
346
    assert_equal 'hoge', foo.new.bar
347
  end
337 348
end