projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c29e397
)
make Item a subtype of Any for sorting
Yuval Kogman [Sat, 18 Apr 2009 17:47:19 +0000 (19:47 +0200)]
lib/Moose/Util/TypeConstraints.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/TypeConstraints.pm
b/lib/Moose/Util/TypeConstraints.pm
index
4872917
..
2f4f1c4
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints.pm
+++ b/
lib/Moose/Util/TypeConstraints.pm
@@
-611,7
+611,7
@@
$_->make_immutable(
);
type 'Any' => where {1}; # meta-type including all
-type 'Item' => where {1}; # base-type
+subtype 'Item' => as 'Any'; # base-type
subtype 'Undef' => as 'Item' => where { !defined($_) };
subtype 'Defined' => as 'Item' => where { defined($_) };