3 use warnings FATAL => 'all';
5 eval { require Moose; require aliased }
7 : (skip_all => "Moose, aliased required for testing types")
12 use lib __DIR__ . '/lib';
17 use Function::Parameters qw(:strict);
19 use aliased 'My::Annoyingly::Long::Name::Space', 'Shortcut';
21 ::is(::exception { method alias_sig ((Shortcut) $affe) { } },
22 undef, 'method with aliased type constraint compiles');
25 my $o = TestClass->new;
26 my $affe = My::Annoyingly::Long::Name::Space->new;
30 }, undef, 'calling method with aliased type constraint');