Revision history for MooseX-Types
{{$NEXT}}
+ - Add support for qw( :all ) on MooseX::Types::Combine libraries. (kentnl)
0.30 2011-09-17
- Fix a bug in the tests that caused failures with Moose HEAD. (doy)
my %types = $class->_provided_types;
+ if ( grep { $_ eq ':all' } @types ) {
+ $_->import( { -into => $caller }, q{:all} )
+ for $class->provide_types_from;
+ return;
+ }
+
my %from;
for my $type (@types) {
unless ($types{$type}) {
'cannot combine types from a package which does not exist';
}
+is exception { 'Combined'->import(':all') }, undef, ':all syntax works';
+
done_testing();