Add VERSION section to pods
[gitmo/Mouse.git] / lib / Mouse / Util / TypeConstraints.pm
index 4d2954e..620be02 100644 (file)
@@ -399,12 +399,7 @@ sub find_or_parse_type_constraint {
 }
 
 sub find_or_create_does_type_constraint{
-    my $type = find_or_parse_type_constraint(@_) || role_type(@_);
-
-    if($type->{type} && $type->{type} ne 'Role'){
-        Carp::cluck("$type is not a role type");
-    }
-    return $type;
+    return find_or_parse_type_constraint(@_) || role_type(@_);
 }
 
 sub find_or_create_isa_type_constraint {
@@ -419,6 +414,10 @@ __END__
 
 Mouse::Util::TypeConstraints - Type constraint system for Mouse
 
+=head1 VERSION
+
+This document describes Mouse version 0.37_06
+
 =head2 SYNOPSIS
 
   use Mouse::Util::TypeConstraints;