Skip to content

Commit

Permalink
METAOP_ASSIGN needs to want its op in sink context
Browse files Browse the repository at this point in the history
This fixes the 'use trace; $a -= 1;' problem.
  • Loading branch information
TimToady committed Dec 17, 2015
1 parent 6fccc52 commit 54f6edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -6678,8 +6678,8 @@ class Perl6::Actions is HLL::Actions does STDActions {
else {
$ast := QAST::Op.new( :node($/), :op<call>,
QAST::Op.new( :op<call>, :name<&METAOP_ASSIGN>,
($ast[0] // QAST::Var.new(
:name("&infix" ~ $*W.canonicalize_pair('', $basesym)), :scope('lexical') ))));
WANTED($ast[0] // QAST::Var.new(
:name("&infix" ~ $*W.canonicalize_pair('', $basesym)), :scope('lexical')) ,'infixish')));
}
}

Expand Down

0 comments on commit 54f6edf

Please sign in to comment.