From 66d92c621931dd688d868ce5a6d7abe21b0bea76 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Mon, 24 Jun 2019 13:51:32 -0300 Subject: [PATCH] Fix PseudoStash.WHICH's signature It included PseudoStash:D as an argument when it's supposed to be the type of the object itself. Fixes #3018 --- src/core/PseudoStash.pm6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/PseudoStash.pm6 b/src/core/PseudoStash.pm6 index 080500f3463..c744f0887aa 100644 --- a/src/core/PseudoStash.pm6 +++ b/src/core/PseudoStash.pm6 @@ -20,7 +20,7 @@ my class PseudoStash is Map { $obj } - multi method WHICH(PseudoStash:D --> ObjAt:D) { self.Mu::WHICH } + multi method WHICH(PseudoStash:D: --> ObjAt:D) { self.Mu::WHICH } my $pseudoers := nqp::hash( 'MY', sub ($cur) { @@ -252,7 +252,7 @@ my class PseudoStash is Map { ) } - # for some reason we get a ambiguous dispatch error by making this a multi + # for some reason we get an ambiguous dispatch error by making this a multi method EXISTS-KEY(PseudoStash:D: Str() $key) { nqp::unless( nqp::existskey($pseudoers,$key),