Skip Menu |
Report information
Id: 131676
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: doing a role fails to find inherited methods in some cases
Download (untitled) / with headers
text/plain 592b
Mu provides iterator method, but when you mix in a role that wants it implemented, it doesn't find it: m: role Meow { method iterator {…} }; class Bar does Meow {} camelia rakudo-moar 2a8d1e: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Method 'iterator' must be implemented by Bar because it is required by roles: Meow.␤at <tmp>:1␤» Yet it all works fine if you are also doing `is SomethingUnrelated`: m: class Foo { method x {} }; role Meow { method iterator {…} }; class Bar is Foo does Meow {} camelia rakudo-moar 2a8d1e: ( no output )


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org