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
CHECK/INIT return
inside a sub causes incorrect (?) error and segv respectively
#6088
Comments
From @zoffixznet00:27 IOninja m: sub {CHECK return; class :: { 5000; 42 } }() |
From @jnthnOn Mon, 20 Feb 2017 16:28:54 -0800, cpan@zoffix.com wrote:
This one has been corrected to report that the problem was in a CHECK block and to include a line number (same kind of reporting already in place for BEGIN blocks and other compile-time evaluations; CHECK somehow got left out). $ ./perl6-m -e 'sub {CHECK return;}'===SORRY!=== Error while compiling -e
This one no longer SEGVs, and instead complains about the return: $ ./perl6-m -e 'sub {INIT return; class :: { 5000; 42 } }()' Tests added to S04-statements/return.t. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#130825 (status was 'resolved')
Searchable as RT130825$
The text was updated successfully, but these errors were encountered: