Skip to content

Commit

Permalink
Fix smartmach exception explosion.
Browse files Browse the repository at this point in the history
Smartmatch should never explodes.

Fix #1772
  • Loading branch information
jsimonet committed May 2, 2018
1 parent 8cd70d1 commit 97d5d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Map.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ my class Map does Iterable does Associative { # declared in BOOTSTRAP
}

multi method ACCEPTS(Map:D: Map:D \m --> Bool) {
self eqv m;
try {self eqv m} // False;
}

multi method EXISTS-KEY(Map:D: Str:D \key) {
Expand Down

0 comments on commit 97d5d83

Please sign in to comment.