projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
trim excess whitespace
[gitmo/Moose.git]
/
lib
/
Moose
/
Util
/
TypeConstraints.pm
diff --git
a/lib/Moose/Util/TypeConstraints.pm
b/lib/Moose/Util/TypeConstraints.pm
index
8fb9c64
..
063439d
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints.pm
+++ b/
lib/Moose/Util/TypeConstraints.pm
@@
-120,7
+120,7
@@
sub create_type_constraint_intersection {
else {
@type_constraint_names = @_;
}
-
+
(scalar @type_constraint_names >= 2)
|| __PACKAGE__->_throw_error("You must pass in at least 2 type names to make an intersection");