);
};
-# if the Object role is applied first, and then a superclass added, we just
-# lost our BUILDALL modification.
-after superclasses => sub
-{
+# If the base class role is applied first, and then a superclass is added, we
+# lose the role.
+after superclasses => sub {
my $self = shift;
return if not @_;
Moose::Util::MetaRole::apply_base_class_roles(
- for => $self->name,
+ for => $self->name,
roles => ['MooseX::StrictConstructor::Role::Object'],
- )
+ );
};
1;