Permalink
Browse files

implement Any.ACCEPTS. Fixes RT #103032

  • Loading branch information...
1 parent 95371a6 commit 3a9ea7814f9659e15a457a2beabfd67eae311586 @moritz moritz committed Nov 7, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/core/Any.pm
  2. +1 −1 t/spectest.data
View
@@ -3,6 +3,7 @@ my class Whatever { ... }
my class Range { ... }
my class Any {
+ multi method ACCEPTS(Any:D: Mu \$a) { self === $a }
########
# List-like methods for Any.
View
@@ -167,7 +167,7 @@ S03-sequence/arity-2-or-more.t
S03-sequence/basic.t
# S03-sequence/limit-arity-2-or-more.t # err: Not enough positional parameters passed; got 1 but expected 2
S03-sequence/nonnumeric.t
-# S03-smartmatch/any-any.t # err: No applicable candidates found to dispatch to for 'ACCEPTS'.
+S03-smartmatch/any-any.t
S03-smartmatch/any-array-slice.t
S03-smartmatch/any-array.t
S03-smartmatch/any-bool.t

0 comments on commit 3a9ea78

Please sign in to comment.