Skip to content

Commit

Permalink
Merge pull request rakudo#5092 from salortiz/patch-1
Browse files Browse the repository at this point in the history
Fix a regression intruduced by new 'dispatch' path
  • Loading branch information
vrurg committed Nov 4, 2022
2 parents fa2f35e + 35b180b commit c704d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.nqp
Expand Up @@ -7560,7 +7560,7 @@ Did you mean a call like '"
my $sm_call;
my $rhs_local := QAST::Node.unique('sm_rhs');
# Will we need to forcingly boolify ACCEPTS return value? No if it's going to be negated anyway or if RHS is a
# regex-ish code like m//, s///, or tr///
# regex-ish code like m//, s///, or tr/// but NOT for S/// nor TR///
my $boolify := !($negated || $rhs.ann('regex_match_code'));

#?if !moar
Expand Down Expand Up @@ -9193,7 +9193,7 @@ Did you mean a call like '"
$past.annotate_self(
'is_S', $<sym> eq 'S'
).annotate(
'regex_match_code', 1
'regex_match_code', !($<sym> eq 'S')
);
make WANTED($past, 's///'); # never carp about s/// in sink context
}
Expand Down

0 comments on commit c704d97

Please sign in to comment.