move setup_import_methods to after the exports are defined
Jesse Luehrs [Wed, 9 Sep 2009 03:48:41 +0000 (22:48 -0500)]
lib/MooseX/Types/CheckedUtilExports.pm

index d3c48da..beb2819 100644 (file)
@@ -45,10 +45,6 @@ From L<Moose::Util::TypeConstraints>. See that module for syntax.
 
 =cut
 
-Moose::Exporter->setup_import_methods(
-    with_caller => [ @exports, 'class_type', 'role_type' ]
-);
-
 for my $export (@exports) {
     no strict 'refs';
 
@@ -67,6 +63,10 @@ for my $export (@exports) {
     }
 }
 
+Moose::Exporter->setup_import_methods(
+    with_caller => [ @exports, 'class_type', 'role_type' ]
+);
+
 sub class_type {
     my $caller = shift;