Skip Menu |
Report information
Id: 63330
Status: resolved
Priority: 0/
Queue: perl6

Owner: jnthn [at] jnthn.net
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



Subject: Diamond role inheritance is broken in Rakudo
Date: Thu, 19 Feb 2009 11:39:26 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 403b
<masak> I know. let's do diamonds! <masak> rakudo: role A { method foo { say "OH HAI" } }; role B does A {}; role C does A {}; class D does B does A {}; D.new.foo <p6eval> rakudo 543e22: OUTPUT«A conflict occurred during role composition due to method 'foo'. [...] <masak> this should work, shouldn't it? <masak> a method shouldn't conflict with itself. <jnthn> That's a bug. * masak bugmits rakudosub
Download (untitled) / with headers
text/plain 524b
On Thu Feb 19 02:39:47 2009, masak wrote: Show quoted text
> <masak> I know. let's do diamonds! > <masak> rakudo: role A { method foo { say "OH HAI" } }; role B does A > {}; role C does A {}; class D does B does A {}; D.new.foo > <p6eval> rakudo 543e22: OUTPUT«A conflict occurred during role > composition due to method 'foo'. [...] > <masak> this should work, shouldn't it? > <masak> a method shouldn't conflict with itself. > <jnthn> That's a bug. > * masak bugmits rakudosub
Test added to t/spec/S12-role/composition.t Cheers, Moritz
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 681b
On Thu Feb 19 09:45:41 2009, moritz wrote: Show quoted text
> On Thu Feb 19 02:39:47 2009, masak wrote:
> > <masak> I know. let's do diamonds!
...drug reference win? ;-) Show quoted text
> > <masak> rakudo: role A { method foo { say "OH HAI" } }; role B does A > > {}; role C does A {}; class D does B does A {}; D.new.foo > > <p6eval> rakudo 543e22: OUTPUT«A conflict occurred during role > > composition due to method 'foo'. [...] > > <masak> this should work, shouldn't it? > > <masak> a method shouldn't conflict with itself. > > <jnthn> That's a bug. > > * masak bugmits rakudosub
>
I've fugbixed it now in git 14cd976. Show quoted text
> Test added to t/spec/S12-role/composition.t >
And unfudged this. Thanks, Jonathan


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