From d18fd7206d494cb1db54a018afa722f001be5e61 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 6 Aug 2007 08:27:04 +0000 Subject: add a test: def m() yield end; p m {|((*))|}. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_block.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bootstraptest/test_block.rb') diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index 602909a9b2..96d78cc965 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -382,7 +382,6 @@ assert_equal 'nil', %q{ m {|(v,(*))|}.inspect } - # [ruby-dev:31153] assert_equal 'nil', %q{ def m() @@ -391,3 +390,10 @@ assert_equal 'nil', %q{ m {|(*,a,b)|}.inspect } +assert_equal 'nil', %q{ + def m() + yield + end + m {|((*))|}.inspect +} + -- cgit v1.2.3