Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method form of return errors out instead of returning #5733

Closed
p6rt opened this issue Oct 7, 2016 · 4 comments
Closed

method form of return errors out instead of returning #5733

p6rt opened this issue Oct 7, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 7, 2016

Migrated from rt.perl.org#129827 (status was 'resolved')

Searchable as RT129827$

@p6rt
Copy link
Author

p6rt commented Oct 7, 2016

From @zoffixznet

<ZoffixW> m​: sub { 42.return }()
<camelia> rakudo-moar 605f27​: OUTPUT«Attempt to return outside of any
Routine␤ in sub at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»

@p6rt
Copy link
Author

p6rt commented Oct 12, 2016

From @jnthn

On Fri Oct 07 09​:39​:14 2016, cpan@​zoffix.com wrote​:

<ZoffixW> m​: sub { 42.return }()
<camelia> rakudo-moar 605f27​: OUTPUT«Attempt to return outside of any
Routine␤ in sub at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»

It was an over-eager return-handler optimization. Fixed, and test added in S06-advanced/return.t.

@p6rt
Copy link
Author

p6rt commented Oct 12, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 12, 2016

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 12, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant