summaryrefslogtreecommitdiff
path: root/bootstraptest/test_block.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 03:44:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 03:44:53 +0000
commit853999fb20f49b4f519d39e9ee4a29f2bbe554bf (patch)
tree9fd5b42b61643656328ce3876ab4eeacfc4ddb6b /bootstraptest/test_block.rb
parent4bb5091496d4f06384fcfc775271247693f115ec (diff)
add test for [ruby-dev:31153].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r--bootstraptest/test_block.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index 57bdb6e..602909a 100644
--- a/bootstraptest/test_block.rb
+++ b/bootstraptest/test_block.rb
@@ -382,3 +382,12 @@ assert_equal 'nil', %q{
m {|(v,(*))|}.inspect
}
+
+# [ruby-dev:31153]
+assert_equal 'nil', %q{
+ def m()
+ yield
+ end
+ m {|(*,a,b)|}.inspect
+}
+