use Mouse::Meta::TypeConstraint;
use Mouse::Exporter;
-use Carp ();
-use Scalar::Util ();
+use Carp ();
Mouse::Exporter->setup_import_methods(
as_is => [qw(
return subtype $name => (
as => 'Object',
optimized_as => sub {
- return Scalar::Util::blessed($_[0])
- && Mouse::Util::does_role($_[0], $role);
+ return Mouse::Util::does_role($_[0], $role);
},
role => $role,
);