The type constraint 'XYZ' has already been created
问题 I want to use a Moose::Util::TypeConstraints in my application. So I define one in my main.pl main.pl use Moose::Util::TypeConstraints; subtype 'mySpecialType' => as 'Object' => where sub { $_->does('something') }; use noUse; In the package noUse.pm are packages used, which use the type constraint noUse.pm package noUse; use Use1; use Use2; 1; and my package Use1 and Use2 are working with the type constraint Use1.pm package Use1; use Moose; has 'object1' => ( is => 'ro', isa => 'mySpecialType