We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If one tries to compose two or more roles built with use Mojo::Base -role, as in the example below:
use Mojo::Base -role
package Boo; use Mojo::Base -role; package Foo; use Mojo::Base -role; Mojo::Base->with_roles('Boo', 'Foo')
the following error is encountered
Method name conflict for 'has' between roles 'Boo' and 'Foo', cannot apply these simultaneously to an object.
That happens because has is imported to the caller namespace after the package has become a Role::Tiny
has
Role::Tiny
vs
That makes Role::Tiny to think has is a method which should be part of the role composition.
The text was updated successfully, but these errors were encountered:
a9d214d
No branches or pull requests
If one tries to compose two or more roles built with
use Mojo::Base -role
, as in the example below:the following error is encountered
That happens because
has
is imported to the caller namespace after the package has become aRole::Tiny
vs
That makes
Role::Tiny
to thinkhas
is a method which should be part of the role composition.The text was updated successfully, but these errors were encountered: