Merge branch 'master' of git.moose.perl.org:Moose
[gitmo/Moose.git] / lib / Moose / Meta / TypeConstraint.pm
index 3dd284a..791965f 100644 (file)
@@ -7,6 +7,7 @@ use metaclass;
 
 use overload '0+'     => sub { refaddr(shift) }, # id an object
              '""'     => sub { shift->name },   # stringify to tc name
+             bool     => sub { 1 },
              fallback => 1;
 
 use Scalar::Util qw(blessed refaddr);