From 94b3c4121bce5b7a9a181a10bc1a9f31fa6f4940 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 17 Dec 2015 07:16:14 +0000 Subject: * proc.c (rb_block_arity): should not call GetProcPtr() for symbols. [ruby-core:72205] [Bug #11830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/ruby/test_symbol.rb') diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 0e8417c5ed..94541865f2 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -157,6 +157,13 @@ class TestSymbol < Test::Unit::TestCase assert_equal(1, first, bug11594) end + def test_to_proc_for_hash_each + bug11830 = '[ruby-core:72205] [Bug #11830]' + assert_normal_exit(<<-'end;', bug11830) # do + {}.each(&:destroy) + end; + end + def test_call o = Object.new def o.foo(x, y); x + y; end -- cgit v1.2.3