'Moose->throw_error("Found unknown attribute(s) passed to the constructor: @bad");',
'}',
);
-};
+} if $Moose::VERSION >= 1.9900;
# If the base class role is applied first, and then a superclass is added, we
# lose the role.
return unless @_;
Moose::Util::MetaRole::apply_base_class_roles(
- for => $self->name,
+ for => $self->name(),
roles => ['MooseX::StrictConstructor::Role::Object'],
);
};