Don't require there to be a BUILDARGS method; fix undef warning
[gitmo/Mouse.git] / t / 040-existing-subclass.t
index 38f41f8..52a9e5f 100644 (file)
@@ -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);
+