Subject: | _build_struct is not using a named parameters for init_meta(). |
I'm using the perl version v5.18.2 & MooseX::Struct 0.6.
when I using this module in my system, I can't pass a test.
If my guess is right, that's because not using named-parameter 'for_class'.
When I modify some code of init_meta(), it have been worked properly.
MooseX/Struct.pm
101 sub _build_struct {
102 my $name = shift;
103 my $attributes = shift;
104
105 ### Initialize $name as a Moose object (inherits, by default, from Moose::Object)
106 Moose->init_meta(for_class => $name);
107
108 ### imports moose functions into $name package, not necessarily caller's
109 Moose->import({into => $name});