Skip to content
Permalink
Browse files

Add a few missing colons, spotted by dogbert++

There were no issues because of this, as the Any variant did the
right thing, albeit much less efficiently
  • Loading branch information...
lizmat committed Jun 24, 2019
1 parent e35180d commit 8969399b31642302d017a6ae051ea85163b26fc0
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/Bag.pm6
  2. +1 −1 src/core/Mix.pm6
@@ -68,7 +68,7 @@ my class Bag does Baggy {

#--- coercion methods
multi method Bag(Bag:D:) { self }
multi method BagHash(Bag:D) {
multi method BagHash(Bag:D:) {
nqp::if(
$!elems && nqp::elems($!elems),
nqp::create(BagHash).SET-SELF(Rakudo::QuantHash.BAGGY-CLONE($!elems)),
@@ -82,7 +82,7 @@ my class Bag does Baggy {
mix()
)
}
multi method MixHash(Bag:D) {
multi method MixHash(Bag:D:) {
nqp::if(
$!elems && nqp::elems($!elems),
nqp::create(MixHash).SET-SELF(Rakudo::QuantHash.BAGGY-CLONE($!elems)),
@@ -78,7 +78,7 @@ my class Mix does Mixy {

#--- coercion methods
multi method Mix(Mix:D:) { self }
multi method MixHash(Mix:D) {
multi method MixHash(Mix:D:) {
nqp::if(
$!elems && nqp::elems($!elems),
nqp::create(MixHash).SET-SELF(Rakudo::QuantHash.BAGGY-CLONE($!elems)),

0 comments on commit 8969399

Please sign in to comment.
You can’t perform that action at this time.