my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name) or return;
- return 1 if 0+$self == 0+$other;
+ return 1 if $self == $other;
if ( $self->has_hand_optimized_type_constraint and $other->has_hand_optimized_type_constraint ) {
return 1 if $self->hand_optimized_type_constraint == $other->hand_optimized_type_constraint;