From 4bb5091496d4f06384fcfc775271247693f115ec Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 13 Jul 2007 03:35:04 +0000 Subject: [PATCH] add test for [ruby-dev:31160]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_block.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index cdfd3e4407..57bdb6e57f 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -374,3 +374,11 @@ assert_equal 'nil', %q{ m{|&b| b}.inspect } +# [ruby-dev:31160] +assert_equal 'nil', %q{ + def m() + yield + end + m {|(v,(*))|}.inspect +} +