# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #126724]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126724 >


<masak> m: role R { has $.x }; role S does R { has $.x }; S.new
<camelia> rakudo-moar : OUTPUT«Cannot find method 'collisions' [...]
<masak> I'm confused by this error message.
<masak> I can understand if there's some kind of collision between R
and S (because of $.x), but the error message isn't really explaining
itself well.
<masak> should the above be legal, rather than an error?
<jnthn> It looks like an error while producing an error...
<masak> yeah...
<lizmat> m: role R { has $.x }; class S does R { has $.x }; S.new
<camelia> rakudo-moar : OUTPUT«===SORRY!===␤Attribute '$!x' already
exists in the class 'S', but a role also wishes to compose it␤»
<lizmat> looks like in the auto-punning of the role ?
<jnthn> Maybe
<jnthn> I can't look now, I'm trying to untangle supplies...
<masak> jnthn: should I rakudobug it?
<jnthn> masak: Pretty sure the collisoins not found while trying to do
error reporting is in there, but can be good to check
<lizmat> masak: the error seems familiar, wouldn't be surprised if
there is a ticket for it already
* masak submits rakudobug
<masak> m: role R { has $!x }; role S does R { has $!x }; S.new
<camelia> rakudo-moar : OUTPUT«Cannot find method 'collisions' [...]

Reply via email to