Subject: | Moo does not like constructors with prototypes |
Moo fails when extending a non-Moo class with a prototype `()` on its constructor.
Prototype mismatch: sub main::new () vs none at .../Moo/_Utils.pm line 84.
A test case:
{
package My::Base;
sub new () {
my $class = shift;
bless {}, $class;
}
1;
}
use Moo;
extends 'My::Base';
1;
This is using Moo==1.004002, Perl v5.18.2.