Checking in changes prior to tagging of version 0.85.
[gitmo/Mouse.git] / lib / Mouse / Meta / TypeConstraint.pm
index aa4e9fc..b3706ef 100644 (file)
@@ -24,6 +24,9 @@ sub new {
                         "$type_parameter is not a subtype of $parent_tp",
                     );
             }
+            else {
+                $type_parameter = undef;
+            }
         }
     }
 
@@ -237,8 +240,10 @@ sub assert_valid {
     return 1;
 }
 
-sub _as_string { $_[0]->name                  } # overload ""
-sub _identity;                                  # overload 0+
+# overloading stuff
+
+sub _as_string { $_[0]->name } # overload ""
+sub _identity;                 # overload 0+
 
 sub _unite { # overload infix:<|>
     my($lhs, $rhs) = @_;
@@ -257,7 +262,7 @@ Mouse::Meta::TypeConstraint - The Mouse Type Constraint metaclass
 
 =head1 VERSION
 
-This document describes Mouse version 0.81
+This document describes Mouse version 0.85
 
 =head1 DESCRIPTION