Skip to content

Commit

Permalink
Fix PseudoStash.WHICH's signature
Browse files Browse the repository at this point in the history
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 66d92c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/PseudoStash.pm6
Expand Up @@ -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) {
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 66d92c6

Please sign in to comment.