Skip to content
Permalink
Browse files

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
  • Loading branch information...
Kaiepi committed Jun 24, 2019
1 parent 577265d commit 66d92c621931dd688d868ce5a6d7abe21b0bea76
Showing with 2 additions and 2 deletions.
  1. +2 −2 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),

0 comments on commit 66d92c6

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