Skip to content

Commit

Permalink
Fix problem with Mixy (^) Mixy not caught by spectest
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Apr 26, 2017
1 parent 9f0b121 commit bea8ac6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core/set_operators.pm
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ multi sub infix:<(^)>(Mixy:D $a, Mixy:D $b) {
nqp::if(
(my $diff := nqp::getattr(nqp::iterval($iter),Pair,'$!value')
- nqp::getattr(
nqp::atkey($base,nqp::iterkey_s($iter)),
nqp::atkey($elems,nqp::iterkey_s($iter)),
Pair,
'$!value'
)
Expand All @@ -634,7 +634,11 @@ multi sub infix:<(^)>(Mixy:D $a, Mixy:D $b) {
),
nqp::deletekey($elems,nqp::iterkey_s($iter))
),
nqp::bindkey($elems,nqp::iterkey_s($iter),nqp::iterval($iter))
nqp::bindkey(
$elems,
nqp::iterkey_s($iter),
nqp::clone(nqp::iterval($iter))
)
)
),
nqp::if(
Expand Down

0 comments on commit bea8ac6

Please sign in to comment.