Skip to content

Commit

Permalink
propagate outer wanted to logical thunks
Browse files Browse the repository at this point in the history
Fixes RT #128770
  • Loading branch information
TimToady committed Jul 29, 2016
1 parent 61725d7 commit 7ba6dbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -84,7 +84,13 @@ sub wanted($ast,$by) {
$ast.annotate('WANTED',1);
}
elsif nqp::istype($ast,QAST::Op) {
if $ast.op eq 'call' && (!$ast.name || $ast.name eq '&infix:<,>' || $ast.name eq '&infix:<xx>') {
if $ast.op eq 'call' && (
!$ast.name ||
$ast.name eq '&infix:<,>' ||
$ast.name eq '&infix:<andthen>' ||
$ast.name eq '&infix:<orelse>' ||
$ast.name eq '&infix:<notandthen>' ||
$ast.name eq '&infix:<xx>') {
WANTALL($ast,$byby);
}
elsif $ast.op eq 'p6capturelex' {
Expand Down

0 comments on commit 7ba6dbf

Please sign in to comment.