Permalink
Browse files

Don't strip elements of their containers when indexing into a Parcel.…

… Fixes RT#105368.
  • Loading branch information...
jnthn committed Feb 10, 2012
1 parent a1180bc commit 9070eeb5d8592c0dab60b41b53542dabda865e46
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/Parcel.pm
View
@@ -44,9 +44,9 @@ my class Parcel does Positional {
method at_pos(Parcel:D: \$x) is rw { self.flat.at_pos($x); }
- proto method postcircumfix:<[ ]>(|$) { * }
- multi method postcircumfix:<[ ]>() { self.flat }
- multi method postcircumfix:<[ ]>(Parcel:D: \$x) { self.flat.[$x] }
+ proto method postcircumfix:<[ ]>(|$) { * }
+ multi method postcircumfix:<[ ]>() is rw { self.flat }
+ multi method postcircumfix:<[ ]>(Parcel:D: \$x) is rw { self.flat.[$x] }
multi method gist(Parcel:D:) {
my Mu $gist := nqp::list();

0 comments on commit 9070eeb

Please sign in to comment.