X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F040-existing-subclass.t;h=52a9e5f049794a6e75fdbe3d0e8c5bdf97c7a18b;hb=c9313657717f78bd96f0325c6aa1c93d0b0d41a5;hp=38f41f860b933137c9238a44085a46d481ac1f5b;hpb=e3e524d9fc5cd09262b463bc129c7b4eaf4c030b;p=gitmo%2FMouse.git diff --git a/t/040-existing-subclass.t b/t/040-existing-subclass.t index 38f41f8..52a9e5f 100644 --- a/t/040-existing-subclass.t +++ b/t/040-existing-subclass.t @@ -6,7 +6,7 @@ use Test::More; BEGIN { eval "use Test::Output;"; plan skip_all => "Test::Output is required for this test" if $@; - plan tests => 2; + plan tests => 3; } do { @@ -45,3 +45,15 @@ stderr_is( 'Mouse does not warn about inlining a constructor when the superclass inlined a constructor', ); +do { + package Baz; + + package Quux; + BEGIN { our @ISA = 'Baz' } + use Mouse; + + __PACKAGE__->meta->make_immutable; +}; + +ok(Quux->new); +