Subject: | compile time warnings with parameterized types. |
package Class;
use Moose;
use MooseX::Types -declare => ['DMIDS'];
use MooseX::Types::Moose qw(:all);
subtype DMIDS , as 'ArrayRef[Int]';
coerce DMIDS
, from Int , via { [$_] }
, from Str , via { [split ',', $_] }
;
yeilds error message
WARNING: String found where Type expected (did you use a => instead of a
, ?) at manyitems.t line 6
Can you get around it with the Parametized types?