diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-13 03:35:04 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-13 03:35:04 +0000 |
| commit | 1ae43fce91411537ababb3a83a441d5e7161ff59 (patch) | |
| tree | 1126db69315e6a7e718614b689a237fbbaa247b8 | |
| parent | e3352e1b15a20301c65d035b9c8659c3b712753a (diff) | |
| download | ruby-1ae43fce91411537ababb3a83a441d5e7161ff59.tar.gz ruby-1ae43fce91411537ababb3a83a441d5e7161ff59.tar.xz ruby-1ae43fce91411537ababb3a83a441d5e7161ff59.zip | |
add test for [ruby-dev:31160].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | bootstraptest/test_block.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 +} + |
