Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 42ef7bec930bca97ec06b880b7d81ace2cc7c40a 1 parent 0c0e3c0
@lizmat lizmat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core/Any.pm
View
2  src/core/Any.pm
@@ -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 }
########
Please sign in to comment.
Something went wrong with that request. Please try again.