this test reuses type names (unintentionally). previously, moose
wouldn't care about redefining types to unrelated things if you did it
via class_type or role_type, but this was a bug which is now fixed.
use MooseX::Types -declare => ['Foo'];
use MooseX::Types::Moose 'Str';
- role_type 'mtfnpy';
+ role_type 'ypnftm';
- coerce mtfnpy =>
+ coerce ypnftm =>
from Str,
- via { bless \$_, 'mtfnpy' };
+ via { bless \$_, 'ypnftm' };
1;
};