Subject: | Doesn't work when used on a Moo role with Function::Parameters |
true doesn't work when used on a Moo role that defines methods using Function::Parameters when the module is loaded at role composition time.
Specifically:
$ perl -MMoo -E 'with q[RoleWithMethod]'
RoleWithMethod.pm did not return a true value at /usr/local/share/perl/5.18.2/Module/Runtime.pm line 314.
for the attached RoleWithMethod.pm.
This may be a bug in Function::Parameters (it doesn't happen if the method is defined using Perl's built-in sub keyword, rather than method from Function::Parameters), so I've opened cpan:#124743 to check that side of things.
Or it may be bug in Moo, since this happens when applying a Moo role, for which I've opened cpan:#124744.
But since the actual symptom is the true module's functionality missing, I've opened this here too.
Cheers
Smylers
Subject: | RoleWithMethod.pm |
package RoleWithMethod;
use Moo::Role;
use true;
use Function::Parameters;
method blah() {}