From 1ae43fce91411537ababb3a83a441d5e7161ff59 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 13 Jul 2007 03:35:04 +0000 Subject: add test for [ruby-dev:31160]. git-svn-id: http://svn.ruby-lang.org/repos/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 cdfd3e440..57bdb6e57 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 +} + -- cgit