add the C<parents> method to TypeConstraint, which is just an alias to C<parent>...
[gitmo/Moose.git] / benchmarks / type_constraints.pl
index 2e87d83..8af49ef 100644 (file)
@@ -20,7 +20,6 @@ all vs. a custom-created type.
     
     has 'baz' => (is => 'rw');
     has 'bar' => (is => 'rw', isa => 'Foo');
-    #has 'boo' => (is => 'rw', isa => type 'CustomFoo' => where { blessed($_) && $_->isa('Foo') });
 }
 
 {
@@ -47,10 +46,7 @@ cmpthese(200_000,
         },
         'w_constraint' => sub {
             $foo->bar($foo);            
-        },
-        #'w_custom_constraint' => sub {
-        #    $foo->boo($foo);            
-        #},        
+        },        
     }
 );