summaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_syntax.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-29 06:12:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-29 06:12:46 +0000
commit6fcc9bd4dd149487ba883a26537408e97c382224 (patch)
tree8d18fd986d3415c665ebcc0a899e0f0a1fa2dbd7 /bootstraptest/test_syntax.rb
parenta3742d6c25bce5f57924aff83de3783c6412ae1f (diff)
downloadruby-6fcc9bd4dd149487ba883a26537408e97c382224.tar.gz
ruby-6fcc9bd4dd149487ba883a26537408e97c382224.tar.xz
ruby-6fcc9bd4dd149487ba883a26537408e97c382224.zip
* parse.y (opt_block_param): command can start just after block param
definition. [ruby-list:44479] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_syntax.rb')
-rw-r--r--bootstraptest/test_syntax.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index c64bd5ad9..dc4cae3df 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -765,3 +765,5 @@ assert_equal "1\n2\n", %q{
next p(i)
end
}
+
+assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')