Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix '{ say $^x } given 42'.
  • Loading branch information
jnthn committed Apr 28, 2015
1 parent cd53104 commit b317d0a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Perl6/Actions.nqp
Expand Up @@ -824,11 +824,10 @@ Compilation unit '$file' contained the following violations:
if $ml {
my $cond := $ml<smexpr>.ast;
if ~$ml<sym> eq 'given' {
$past := QAST::Op.new(
:op('call'),
block_closure(make_topic_block_ref($/, $past, migrate_stmt_id => $*STATEMENT_ID)),
$cond
);
unless $past.ann('bare_block') {
$past := make_topic_block_ref($/, $past, migrate_stmt_id => $*STATEMENT_ID);
}
$past := QAST::Op.new( :op('call'), block_closure($past), $cond );
}
elsif ~$ml<sym> eq 'for' {
unless $past.ann('past_block') {
Expand Down

0 comments on commit b317d0a

Please sign in to comment.