p5-MOP
p5-MOP copied to clipboard
mop::role attribute methods need to check if attribute has been aliased from a role
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