Skip Menu |

This queue is for tickets about the Moo CPAN distribution.

Report information
The Basics
Id: 105710
Status: new
Priority: 0/
Queue: Moo

People
Owner: Nobody in particular
Requestors: SROMANOV [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.000001
Fixed in: (no value)



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.