mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (iseq_compile_each): remove "retry" in block.
("iter{retry}" cause syntax error) Currently, "begin; ...; rescue; iter{retry}; end" cause syntax error too. * bootstraptest/test_jump.rb: ditto. * lib/drb/invokemethod.rb: ditto. * sample/drb/darrayc.rb: ditto. * sample/test.rb: ditto. * test/drb/drbtest.rb: ditto. * test/ruby/test_iterator.rb: ditto. * sample/test.rb: add a 'test' directory on the SYSTEM test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
def4a99af2
commit
860b40fd63
8 changed files with 45 additions and 62 deletions
|
@ -45,15 +45,3 @@ ro.each do |x|
|
|||
puts count
|
||||
redo if count == 3
|
||||
end
|
||||
|
||||
puts "# each, retry"
|
||||
retried = false
|
||||
ro.each do |x|
|
||||
puts x
|
||||
if x == 4 && !retried
|
||||
puts 'retry'
|
||||
retried = true
|
||||
retry
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue