deprecate non-arrayref enum and duck_type
[gitmo/Moose.git] / t / type_constraints / duck_type_handles.t
index 67971b7..55a0db7 100644 (file)
@@ -28,7 +28,7 @@ my @phonograph;
     use Moose;
     use Moose::Util::TypeConstraints;
 
-    my $ducktype = duck_type 'DuckType' => qw(walk quack);
+    my $ducktype = duck_type 'DuckType' => [qw(walk quack)];
 
     has duck => (
         isa     => $ducktype,