Skip to content

Commit

Permalink
Fix @A[0;0] autoviv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouq committed Jan 28, 2015
1 parent 358d1d9 commit 5275eb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/array_slice.pm
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ multi sub postcircumfix:<[ ]>(\SELF, Whatever:D, :$v!, *%other) is rw {
multi sub postcircumfix:<[ ]>(\SELF, HyperWhatever:D $, *%adv) is rw {
X::NYI.new(feature => 'HyperWhatever in array index').throw;
}
multi sub postcircumfix:<[ ]>(\SELF, HyperWhatever:D $, Mu \assignee, *%adv) is rw {
multi sub postcircumfix:<[ ]>(\SELF, HyperWhatever:D $, Mu \assignee) is rw {
X::NYI.new(feature => 'HyperWhatever in array index').throw;
}

Expand Down Expand Up @@ -300,11 +300,11 @@ multi sub postcircumfix:<[ ]> (\SELF is rw, LoL:D \keys, *%adv) is rw {
postcircumfix:<[ ]>(SELF, keys[0].elems > 1 ?? keys[0].list !! keys[0] , |%adv);
}
}
multi sub postcircumfix:<[ ]> (\SELF is rw, LoL:D \keys, Mu \assignee, *%adv) is rw {
multi sub postcircumfix:<[ ]> (\SELF is rw, LoL:D \keys, Mu \assignee) is rw {
if keys > 1 {
postcircumfix:<[ ]>(SELF, keys, |%adv) = assignee;
SELF[keys[0]][keys[1..*]] = assignee;
} else {
postcircumfix:<[ ]>(SELF, keys[0], assignee, |%adv);
SELF[keys[0]] = assignee;
}
}

Expand Down

0 comments on commit 5275eb9

Please sign in to comment.