From: gfx Date: Mon, 7 Dec 2009 05:20:30 +0000 (+0900) Subject: Fix the hierarchy of type constraints: Num and Int are a subtype of Str X-Git-Tag: 0.43~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dba2e1424f2038b2b8a40027ba6be3a212516af5;p=gitmo%2FMouse.git Fix the hierarchy of type constraints: Num and Int are a subtype of Str --- diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index 572fd08..c97b228 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -418,18 +418,18 @@ yet to have been created, is to quote the type name: This module also provides a simple hierarchy for Perl 5 types, here is that hierarchy represented visually. - Any + Any Item Bool Maybe[`a] Undef Defined Value - Num - Int Str - ClassName - RoleName + Num + Int + ClassName + RoleName Ref ScalarRef ArrayRef[`a] @@ -437,7 +437,7 @@ that hierarchy represented visually. CodeRef RegexpRef GlobRef - FileHandle + FileHandle Object B Any type followed by a type parameter C<[`a]> can be