summaryrefslogtreecommitdiff
path: root/bootstraptest/test_block.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 03:35:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 03:35:04 +0000
commit4bb5091496d4f06384fcfc775271247693f115ec (patch)
tree1126db69315e6a7e718614b689a237fbbaa247b8 /bootstraptest/test_block.rb
parent113a709cce1baf1623ad8457a08585c5db49a5df (diff)
add test for [ruby-dev:31160].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r--bootstraptest/test_block.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index cdfd3e4..57bdb6e 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
+}
+