use Scalar::Util 'blessed';
use Moose::Util::TypeConstraints ();
-our $VERSION = '0.72';
+our $VERSION = '0.75_01';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
Moose::Util::TypeConstraints::find_type_constraint($_)
||
__PACKAGE__->new( class => $_, name => "__ANON__" )
- } $self->class->meta->superclasses,
+ } Class::MOP::class_of($self->class)->superclasses,
);
}
Returns all the type's parent types, corresponding to its parent
classes.
-=item B<< $constraint->is_a_subtype_of($type_name_or_object) >>
+=item B<< $constraint->is_subtype_of($type_name_or_object) >>
If the given type is also a class type, then this checks that the
type's class is a subclass of the other type's class.