Fix a warning
[gitmo/MooseX-Types.git] / t / regressions / 01-is_subtype_of.t
index d1a7054..87e5382 100644 (file)
@@ -6,7 +6,7 @@ use MooseX::Types;
 use MooseX::Types::Moose qw(Any Item );
 
 
-my $item = subtype as 'Item';
+my $item = subtype as Item;
 
 ok Item->equals('Item');
 ok Item->equals(Item);
@@ -20,19 +20,3 @@ ok ( Item->is_subtype_of('Any'),
 ok ( Item->is_subtype_of(Any),
   q[Item is subtype of Any]);
 
-
-__END__
-
-
-my $any = subtype as 'Any';
-
-ok ( $item->is_subtype_of(Any),
-  q[Item is subtype of Any]);
-
-ok ( $item->is_subtype_of($any),
-  q[$item is subtype of $any]);
-
-ok ( Item->is_subtype_of($any),
-  q[Item is subtype of $any]);
-
-