# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #120646] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=120646 >
<masak> r: role Foo {}; class Foo {} # most definitely LTA error message -- via lizmat++ <camelia> rakudo-parrot e5fd34, rakudo-jvm e5fd34: OUTPUT«===SORRY!===No such method 'is_composed' for invocant of type 'Perl6::Metamodel::ParametricRoleGroupHOW'» * masak submits rakudobug <moritz> oh, I think I know what's going on <moritz> because roles are multi, there's no redeclaration error <moritz> though there should be one, because the second defintion is not a role <jnthn> I think it's actually detected that it's looking at a re-decl and is then trying to establish if the thing is a stub or not <jnthn> Since is_composed is the way to detect that <jnthn> But yeah, needs to check if the object *can* is_composed before actually calling it.