Subject: | Attribute override dies when sub-classed from Moose |
This bit:
{
package Foo;
use Moose;
has my_attr => (
is => 'ro',
default => 'boom!',
);
}
{
package Bar;
use Moo;
extends 'Foo';
has '+my_attr' => (
default => 'bang!'
);
}
__END__
Moose: 2.1405
Moo: 2.000001
dies with
has '+my_attr' given but no my_attr attribute already exists at /home/sromanov/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Method/Generate/Constructor.pm line 16.
I ran into it while was trying to gradually port a dist from Moose to Moo.