Tweaks
[gitmo/Mouse.git] / lib / Mouse / Meta / TypeConstraint.pm
index aa4e9fc..7b58d16 100644 (file)
@@ -24,6 +24,9 @@ sub new {
                         "$type_parameter is not a subtype of $parent_tp",
                     );
             }
+            else {
+                $type_parameter = undef;
+            }
         }
     }