From: Stevan Little <stevan.little@iinteractive.com>
Date: Sat, 17 May 2008 21:07:32 +0000 (+0000)
Subject: adding details ot the changelog
X-Git-Tag: 0_55~167
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a84a89ba61127f6deea250f3065e68d1287444a1;p=gitmo%2FMoose.git

adding details ot the changelog
---

diff --git a/Changes b/Changes
index ebceccf..5356b09 100644
--- a/Changes
+++ b/Changes
@@ -10,6 +10,10 @@ Revision history for Perl extension Moose
         more gracefully
         - added tests for this
 
+    * Moose::Util::TypeConstraints
+      - subtypes of parameterizable types now are 
+        themselves parameterizable types
+
     * Moose::Meta::Method::Constructor
       - fixed bug where trigger was not being 
         called by the inlined immutable 
diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm
index 6c6ab16..9cde8d6 100644
--- a/lib/Moose/Util/TypeConstraints.pm
+++ b/lib/Moose/Util/TypeConstraints.pm
@@ -8,7 +8,7 @@ use Carp         'confess';
 use Scalar::Util 'blessed', 'reftype';
 use Sub::Exporter;
 
-our $VERSION   = '0.22';
+our $VERSION   = '0.23';
 our $AUTHORITY = 'cpan:STEVAN';
 
 ## --------------------------------------------------------
@@ -386,9 +386,9 @@ sub _create_type_constraint ($$$;$$) {
     my $class = "Moose::Meta::TypeConstraint";
 
     # FIXME should probably not be a special case
-    # FIXME also support metaclass/traits in TCs
     if ( defined $parent and $parent = find_or_parse_type_constraint($parent) ) {
-        $class = "Moose::Meta::TypeConstraint::Parameterizable" if $parent->isa("Moose::Meta::TypeConstraint::Parameterizable");
+        $class = "Moose::Meta::TypeConstraint::Parameterizable" 
+            if $parent->isa("Moose::Meta::TypeConstraint::Parameterizable");
     }
 
     my $constraint = $class->new(