Subject: | Unable to use Multi Methods in Roles |
Hi there-
It appears that multi subs/methods don't work properly when being composed in roles (Moo::Role).
I did a little digging, and it seems that rather than methods being registered under the package name of a role's consumer, they are registered under the package name of the role itself. So when it comes time to look up a method in the dispatch table, we're looking in the wrong package name, and get this error:
"did not match any known signature for multi sub"
I'm not especially familiar with how Moo::Role works behind the scenes, and so maybe this is unfixable, or undesired. But it seems that if it were fixable, maybe Kavorka::Multi::__gather_candidates would be the place to do it...?
Do you have any thoughts on this?
(Big fan of Kavorka - thank you!)
Ryan Lang