diff --git a/src/core/Pair.pm b/src/core/Pair.pm index d2afd450a16..0d5e78295f2 100644 --- a/src/core/Pair.pm +++ b/src/core/Pair.pm @@ -25,7 +25,7 @@ my class Pair does Associative { $!value.ACCEPTS(%h.AT-KEY($!key)); } multi method ACCEPTS(Pair:D: Pair:D $p) { - $!value.ACCEPTS(nqp::getattr($p,Pair,'$!value')); + $!value.ACCEPTS(nqp::getattr(nqp::decont($p),Pair,'$!value')); } multi method ACCEPTS(Pair:D: Mu $other) { $other."$!key"().Bool === $!value.Bool