my $self = shift;
my $meta = shift;
- if ($meta->name->can('BUILDARGS') != Mouse::Object->can('BUILDARGS')) {
+ if ($meta->name->can('BUILDARGS') && $meta->name->can('BUILDARGS') != Mouse::Object->can('BUILDARGS')) {
return '$class->BUILDARGS(@_)';
}
BEGIN {
eval "use Test::Output;";
plan skip_all => "Test::Output is required for this test" if $@;
- plan tests => 2;
+ plan tests => 3;
}
do {
'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);
+