Christopher J. Madsen [Wed, 4 Jul 2012 04:48:16 +0000 (23:48 -0500)]
This is the root issue in RT#77303 and RT#77299
my $type;
is( exception { $type = role_type 'MyExampleRole' }, undef, 'Make initial role_type' );
is( exception { is(role_type('MyExampleRole'), $type, 're-running role_type gives same type') }, undef, 'No exception making duplicate role_type' );;
+ is( exception { ok( ! $type->is_subtype_of('Bar'), 'MyExampleRole is not a subtype of Bar' ) }, undef, 'No exception for is_subtype_of undefined role' );
}
done_testing;