'Fix' has '+attr' in roles by exploding earlier.
authorTomas Doran <bobtfish@bobtfish.net>
Tue, 11 May 2010 15:25:40 +0000 (17:25 +0200)
committerTomas Doran <bobtfish@bobtfish.net>
Tue, 11 May 2010 15:29:57 +0000 (17:29 +0200)
commit576cd474fc09bba92843e299a33dd2634629a930
treecef16f262a7893fdfa0f7f14fde1046b120d58b4
parent24a9f75ec5a62d7b937af776da790e85d8ff2809
'Fix' has '+attr' in roles by exploding earlier.

This stops us from allowing you to compose roles with has '+attr',
which latter fail when composed onto a class, by exploding earlier
(i.e. at the point which the attribute is added)

It seems like there is some duplicate functionality in Moose::Meta::Class'
process_attribute / add_attribute methods, possible candidate for later
refactoring?
Changes
lib/Moose/Meta/Role.pm
t/030_roles/017_extending_role_attrs.t