From: Ricardo Signes Date: Sun, 16 May 2010 23:36:49 +0000 (-0400) Subject: make the new "distinct types not equal" tests pass X-Git-Tag: 1.04~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=05a5763ccdc568ae0896a860339bc76df160bc44;p=gitmo%2FMoose.git make the new "distinct types not equal" tests pass The problem was that the default opinion on type constraints is that if we didn't know what else to do, we said they're the same. Instead, since it seems easy to make two "equal" types, we should fix it to be not-equal by default. --- diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm index 8b6a143..69a1605 100644 --- a/lib/Moose/Meta/TypeConstraint.pm +++ b/lib/Moose/Meta/TypeConstraint.pm @@ -148,7 +148,7 @@ sub equals { return if $other->has_parent; } - return 1; + return; } sub is_a_type_of {