Permalink
Browse files

Make sure $default doesn't leak to GLOBAL::

  • Loading branch information...
1 parent 0c0e3c0 commit 42ef7bec930bca97ec06b880b7d81ace2cc7c40a @lizmat lizmat committed Jun 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Any.pm
View
@@ -2,9 +2,9 @@ my class MapIter { ... }
my class Range { ... }
my class X::Bind::Slice { ... }
my class X::Bind::ZenSlice { ... }
-my $default= []; # so that we can check passing of parameters to ".hash"
my class Any {
+ my $default= []; # so that we can check passing of parameters to ".hash"
multi method ACCEPTS(Any:D: Mu \a) { self === a }
########

0 comments on commit 42ef7be

Please sign in to comment.