Skip to content

Commit

Permalink
Bring Baggy.perl inline with Setty.perl
Browse files Browse the repository at this point in the history
Wrt to immutable bag() and mix().  This does not fix the fact that ().Set
().Bag and ().Mix now return the immutable set() bag() mix() respectively.
  • Loading branch information
lizmat committed Jun 29, 2018
1 parent 5a4c95e commit 84f60ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Baggy.pm6
Expand Up @@ -343,10 +343,10 @@ my role Baggy does QuantHash {
nqp::concat(').',self.^name)
),
nqp::if(
nqp::istype(self,Bag),
nqp::eqaddr(self,bag()),
'bag()',
nqp::if(
nqp::istype(self,Mix),
nqp::eqaddr(self,mix()),
'mix()',
nqp::concat('().',self.^name)
)
Expand Down

0 comments on commit 84f60ad

Please sign in to comment.