Skip to content

Commit

Permalink
Restore check that was accidentally removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 10, 2018
1 parent d6c0539 commit 08a5421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -2235,7 +2235,8 @@ class Perl6::Optimizer {
# (Check the following after we've checked children, since they may have useless bits too.)

# Any literal in void context deserves a warning.
if $!void_context && +@($want) == 3 && $want.node {
if $!void_context && +@($want) == 3 && $want.node
&& !$want.ann('sink-quietly') {
my str $warning;
my $no-sink;

Expand Down

0 comments on commit 08a5421

Please sign in to comment.