added fallback to overloading
[gitmo/MooseX-Types.git] / 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,
+    
 );