projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
28ce144
)
register the type
Ricardo SIGNES [Wed, 21 Jan 2009 23:11:17 +0000 (23:11 +0000)]
lib/Moose/Util/TypeConstraints.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/TypeConstraints.pm
b/lib/Moose/Util/TypeConstraints.pm
index
b9af74e
..
7bc4c4a
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints.pm
+++ b/
lib/Moose/Util/TypeConstraints.pm
@@
-306,6
+306,8
@@
sub maybe_type {
my ($type_parameter) = @_;
register_type_constraint(
+ # $REGISTRY->get_type_constraint('Maybe')
+ # ->get_constraint_for($type_parameter)
Moose::Meta::TypeConstraint->new(
parent => find_type_constraint('Item'),
constraint => sub {