Skip to content

Commit

Permalink
do not sink list assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Dec 2, 2012
1 parent 17bcd96 commit 36e4477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Actions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
'unless', 1,
);
sub autosink($past) {
nqp::istype($past, QAST::Op) && %sinkable{$past.op}
nqp::istype($past, QAST::Op) && %sinkable{$past.op} && !$past<nosink>
?? sink($past)
!! $past;
}
Expand Down Expand Up @@ -4280,6 +4280,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
$past := QAST::Op.new(
:op('callmethod'), :name('STORE'),
$lhs_ast, $rhs_ast);
$past<nosink> := 1;
}
else {
$past := QAST::Op.new( :node($/), :op('p6store'),
Expand Down

0 comments on commit 36e4477

Please sign in to comment.