12 default => sub { 'MooParent' },
21 default => 'MooseChild',
30 default => 'MooseChild2',
32 __PACKAGE__->meta->make_immutable
40 default => sub { 'MooChild' },
47 'default value in Moose child'
51 MooseChild2->new->foo,
53 'default value in Moose child'
57 local $SIG{__WARN__} = sub { die $_[0] };
58 ok(MooChild->meta->has_attribute('foo'), 'inflated metaclass has overridden attribute');
59 }, undef, 'metaclass inflation of plus override works without warnings');