Tweaks
Fuji, Goro [Fri, 5 Nov 2010 08:11:12 +0000 (17:11 +0900)]
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;
+            }
         }
     }