Skip to content

Commit

Permalink
Make sure $default doesn't leak to GLOBAL::
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 15, 2013
1 parent 0c0e3c0 commit 42ef7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

########
Expand Down

0 comments on commit 42ef7be

Please sign in to comment.