projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
And the same fix for role_type
[gitmo/Moose.git]
/
lib
/
Moose
/
Util
/
TypeConstraints.pm
diff --git
a/lib/Moose/Util/TypeConstraints.pm
b/lib/Moose/Util/TypeConstraints.pm
index
bcd9f97
..
b44a0eb
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints.pm
+++ b/
lib/Moose/Util/TypeConstraints.pm
@@
-201,6
+201,9
@@
sub create_role_type_constraint {
. " and cannot be created again in "
. $pkg_defined_in )
}
+ else {
+ return $type;
+ }
}
my %options = (