(exists $options->{isa})
|| confess "You must define a type with the Array metaclass";
- (find_type_constraint($options->{isa})->is_a_type_of('ArrayRef'))
+ my $c = find_type_constraint($options->{isa}) || $options->{isa};
+ ( $c && blessed($c) && $c->is_a_type_of('ArrayRef'))
|| confess "The type constraint for a Array ($options->{isa}) must be a subtype of ArrayRef";
}
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
-=cut
\ No newline at end of file
+=cut