Moose::Exporter fails to apply metaclass_roles abandoned/m-exporter-metaclass_roles-bug
authorPedro Melo <melo@simplicidade.org>
Fri, 27 Nov 2009 17:50:42 +0000 (17:50 +0000)
committerPedro Melo <melo@simplicidade.org>
Fri, 27 Nov 2009 17:50:42 +0000 (17:50 +0000)
commitbbcfb8c2c42b602e2568f82e74a9df0cb2afb66e
tree857f1664efaa4c5a8a2e98e9f240f99fd6cef7be
parent74d5a674032e5af49d601bb6e6ae74e85df4ab82
Moose::Exporter fails to apply metaclass_roles

The generated code for init_meta (starts at line 504 of Moose::Exporter)
will bail out at the top via:

    return unless Class::MOP::class_of( $options{for_class} );

This happends because at this time, there is no ->meta() for the
$options{for_class}.
t/050_metaclasses/012_moose_exporter.t