stevan / p5-MOP

A Meta Object Protocol for Perl 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

stevan opened this issue · 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