Stop making $class_tc->is_subtype_of behave like ->is_type_of
authorFlorian Ragwitz <rafl@debian.org>
Fri, 30 Apr 2010 20:33:22 +0000 (22:33 +0200)
committerFlorian Ragwitz <rafl@debian.org>
Fri, 30 Apr 2010 20:33:22 +0000 (22:33 +0200)
commit8ff7989077ecc7b9c2bc3e73eaa19b4db49f1804
tree2be6c4ca5f8ab7ad7260a72a9eedc92139882e2c
parent4ff140fe745c185ceea9cfcb9c82214777e158e2
Stop making $class_tc->is_subtype_of behave like ->is_type_of

Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
the class the TC represents as an argument incorrectly returned true. This
behavior is correct for is_type_of, not is_subtype_of.
Changes
lib/Moose/Manual/Delta.pod
lib/Moose/Meta/TypeConstraint/Class.pm
t/040_type_constraints/020_class_type_constraint.t