+ - squelch used only once warnings for $Moo::HandleMoose::MOUSE
- MooClass->meta
- subconstructor handling for Moose classes
Moo->_constructor_maker_for($target)
->register_attribute_specs(%{$old->all_attribute_specs});
}
+ no warnings 'once'; # piss off. -- mst
$Moo::HandleMoose::MOUSE{$target} = [
grep defined, map Mouse::Util::find_meta($_), @_
] if $INC{"Mouse.pm"};
--- /dev/null
+use strictures 1;
+use Test::More;
+
+{
+ package Spoon;
+
+ use Moo;
+
+ no warnings 'redefine';
+
+ sub has { "has!" }
+
+ no Moo;
+}
+
+ok(!Spoon->can('extends'), 'extends cleaned');
+is(Spoon->has, "has!", 'has left alone');
+
+done_testing;