summaryrefslogtreecommitdiff
path: root/bootstraptest/test_block.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 08:27:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 08:27:04 +0000
commitd18fd7206d494cb1db54a018afa722f001be5e61 (patch)
tree82ebba811559df9c3640f82a57f7228b146f6811 /bootstraptest/test_block.rb
parent18c81c3d3ef53c6548c5fa0cad90efe2b3ae93cf (diff)
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
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r--bootstraptest/test_block.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index 602909a..96d78cc 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
+}
+