Skip to content

'return' from block need more restriction #36

@GoogleCodeExporter

Description

@GoogleCodeExporter
[Thank feiyu for reporting this]

(1)code snippet:
a = [ "a", "b", "c" ]
a.each {|x| print x, " -- ";return; }

(2)Run

ruby:It is suppose to be an error.The description info is:unexpected
return (LocalJumpError)

xruby:work correctly,output: a --


Original issue reported on code.google.com by xue.yong...@gmail.com on 21 Apr 2007 at 6:59

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions