suppress warnings when we use around and has "+..."
[gitmo/Mouse.git] / lib / Mouse / Meta / Class.pm
index 6f6feab..8668990 100644 (file)
@@ -63,6 +63,7 @@ sub add_method {
     my $pkg = $self->name;
 
     no strict 'refs';
+    no warnings 'redefine';
     $self->{'methods'}->{$name}++; # Moose stores meta object here.
     *{ $pkg . '::' . $name } = $code;
 }