updated makefile requirements and got the basics of coercions in place
john napiorkowski [Fri, 22 May 2009 19:52:59 +0000 (15:52 -0400)]
lib/MooseX/Dependent/Meta/TypeConstraint/Dependent.pm

index 79ca107..12003dc 100644 (file)
@@ -297,7 +297,7 @@ around 'coerce' => sub {
     my ($coerce, $self, @args) = @_;
     if($self->coercion) {
         if(my $value = $self->$coerce(@args)) {
-            return $value;
+            return $value if defined $value;
         } 
     }
     return $self->parent->coerce(@args);