added fallback to overloading
John Napiorkowski [Wed, 22 Oct 2008 20:02:34 +0000 (20:02 +0000)]
lib/MooseX/Types/TypeDecorator.pm

index 3d74d30..31dd3fd 100644 (file)
@@ -22,6 +22,8 @@ use overload(
         my $union = Moose::Meta::TypeConstraint::Union->new(type_constraints=>\@tc);
         return Moose::Util::TypeConstraints::register_type_constraint($union);
     },
+    fallback => 1,
+    
 );