Permalink
Browse files

Make Any.exists|delete only work on undefined values

  • Loading branch information...
1 parent a0d7cec commit 39024d80511ea3c706795ca6d9800af8e05d32f1 @lizmat lizmat committed Sep 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Any.pm
View
@@ -20,8 +20,8 @@ my class Any { # declared in BOOTSTRAP
# primitives
method infinite() { Nil }
- method exists($key) { False }
- method delete($key) { Nil }
+ method exists(Any:U: $key) { False }
+ method delete(Any:U: $key) { Nil }
method list() {
nqp::p6list(
self.DEFINITE ?? nqp::list(self) !! nqp::list(), List, Mu

0 comments on commit 39024d8

Please sign in to comment.