From: Ricardo SIGNES Date: Wed, 21 Jan 2009 23:11:17 +0000 (+0000) Subject: register the type X-Git-Tag: 0.65~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ce6716a4e153fed253ea924597f03e71ce6a54bf;p=gitmo%2FMoose.git register the type --- diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index b9af74e..7bc4c4a 100644 --- 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 {