Skip to content
New issue

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

multi required by role doesn't work with .^mixin #5053

Open
p6rt opened this issue Jan 18, 2016 · 2 comments
Open

multi required by role doesn't work with .^mixin #5053

p6rt opened this issue Jan 18, 2016 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 18, 2016

Migrated from rt.perl.org#127303 (status was 'new')

Searchable as RT127303$

@p6rt
Copy link
Author

p6rt commented Jan 18, 2016

From @LLFourn

role multirequire {
  multi method runtime($var) {...}
}

class Foo {
  multi method runtime($var) { }
}

Foo.^mixin(multirequire);

Multi method 'runtime' with signature :(Foo+{multirequire} $​: $var, *%_)
must be implemented by Foo+{multirequire} because it is required by a role

change that to a does and it works fine.

@p6rt
Copy link
Author

p6rt commented Aug 6, 2016

From @zoffixznet

Still present in Rakudo version 2016.07.1-88-g15ee3c3 built on MoarVM version 2016.07-11-g11e02fe

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt p6rt added the oo label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant