now-deprecated Role.
Since it provides an optimized constraint, the parent doesn't really
matter anyway.
sub new {
my ( $class, %args ) = @_;
- $args{parent} = Moose::Util::TypeConstraints::find_type_constraint('Role');
+ $args{parent} = Moose::Util::TypeConstraints::find_type_constraint('Object');
my $self = $class->_new(\%args);
$self->_create_hand_optimized_type_constraint;
use strict;
use warnings;
-use Test::More tests => 19;
+use Test::More tests => 18;
use Test::Exception;
BEGIN {
ok( $type->is_subtype_of("Bar"), "subtype of bar" );
ok( $type->is_subtype_of("Object"), "subtype of Object" );
-ok( $type->is_subtype_of("Role"), "subtype of Role" );
ok( !$type->is_subtype_of("ThisTypeDoesNotExist"), "not subtype of unknown type name" );
ok( !$type->is_a_type_of("ThisTypeDoesNotExist"), "not type of unknown type name" );