Fix bug with multiple class_type statements.
[gitmo/Moose.git] / lib / Moose / Util / TypeConstraints.pm
index 81f4d9f..bcd9f97 100644 (file)
@@ -165,6 +165,9 @@ sub create_class_type_constraint {
               . " and cannot be created again in "
               . $pkg_defined_in )
         }
+        else {
+            return $type;
+        }
     }
 
     my %options = (