aboutsummaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-03 15:59:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-03 15:59:45 +0000
commitc4e5ec23d3cea5fb991a4ff3b1da733168731864 (patch)
treebf8c46bbd1d9a0f993b6a4f0ec9a64a95597b459 /sample/test.rb
parenteebdfca0b255768092b4c6d8aa828d6518f51f16 (diff)
downloadruby-c4e5ec23d3cea5fb991a4ff3b1da733168731864.tar.gz
* parse.y (block_param): restrict block parameters to be local
variables only. * test/ruby/test_iterator.rb (TestIterator::test_nested_iterator): update test suite to conform the last change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb
index a5026d49c8..a32dbcbec2 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -846,8 +846,9 @@ def tt
}
end
+i=0
tt{|i| break if i == 5}
-test_ok(i == 5)
+test_ok(i == 0)
def tt2(dummy)
yield 1