use MooseX::Types::Moose qw( Str ArrayRef Int );
use MooseX::Types
- -declare => [qw( NonEmptyStr IntArrayRef TwentyThree )];
+ -declare => [qw( NonEmptyStr IntArrayRef TwentyThree Foo2Alias )];
subtype NonEmptyStr,
as Str,
where { $_ == 23 },
message { 'Int is not 23' };
+subtype Foo2Alias,
+ as Str,
+ where { 1 };
+
1;