p5-MOP icon indicating copy to clipboard operation
p5-MOP copied to clipboard

mop::role attribute methods need to check if attribute has been aliased from a role

Open stevan opened this issue 10 years ago • 0 comments

This is something we fixed with methods but needs to also be done with attributes. When calculating if an attribute belongs to a class/role or not, two things are checked. First, we check to see if the origin_class of the attribute is the same as us, if not, we then need to check if the attribute was aliased to us from a role or not. We do the first step, but not the second step, this needs fixing and tests.

Note in source: https://github.com/stevan/p5-mop/blob/master/lib/mop/role.pm#L495

stevan avatar Aug 16 '15 09:08 stevan