eval "use Test::Output";
plan skip_all => "Test::Output is required for this test" if $@;
-plan tests => 5;
+plan tests => 6;
{
package NotMoose;
'no warning when inheriting from a class that has already made itself immutable'
);
}
+
+{
+ package My::Constructor;
+ use base 'Moose::Meta::Method::Constructor';
+}
+
+{
+ package CustomCons;
+ use Moose;
+
+ CustomCons->meta->make_immutable( constructor_class => 'My::Constructor' );
+}
+
+{
+ package Subclass;
+ use Moose;
+
+ extends 'CustomCons';
+
+ ::stderr_is(
+ sub { Subclass->meta->make_immutable },
+ q{},
+ 'no warning when inheriting from a class that has already made itself immutable'
+ );
+}