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
Internal error talking about coroutines when combining recursion and gather in Rakudo #3114
Comments
From @masak<cognominal> stuck anew with the same message; no return in the gather |
From @usev6I tried the evaluation from this bug report and didn't get that internal error anymore. There is still a type check error, though (which looks plausible to me): $ perl6-m -e 'sub p(*@l) { gather { if @l == 1 { take @l } else { @l.shift; for p(@l) -> @p {} } } }; say p 1..4' If I change @p to a scalar container $p, the code does not die: $ perl6-m -e 'sub p(*@l) { gather { if @l == 1 { take @l } else { @l.shift; for p(@l) -> $p {} } } }; say p 1..4; say "alive"' alive I'm not quite sure how a proper test for this ticket would look like. Just testing for X::TypeCheck? |
1 similar comment
From @usev6I tried the evaluation from this bug report and didn't get that internal error anymore. There is still a type check error, though (which looks plausible to me): $ perl6-m -e 'sub p(*@l) { gather { if @l == 1 { take @l } else { @l.shift; for p(@l) -> @p {} } } }; say p 1..4' If I change @p to a scalar container $p, the code does not die: $ perl6-m -e 'sub p(*@l) { gather { if @l == 1 { take @l } else { @l.shift; for p(@l) -> $p {} } } }; say p 1..4; say "alive"' alive I'm not quite sure how a proper test for this ticket would look like. Just testing for X::TypeCheck? |
@usev6 - Status changed from 'new' to 'open' |
From @cokeOn Fri Jun 19 12:57:49 2015, bartolin@gmx.de wrote:
Behavior changes in GLR: -- |
@diakopter - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#117763 (status was 'resolved')
Searchable as RT117763$
The text was updated successfully, but these errors were encountered: