# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #100468] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=100468 >
<masak> nom: class A { role B {} }; A::B.new; say "alive" <p6eval> nom ebd4d8: OUTPUT«alive» <masak> nom: role A { role B {} }; A::B.new; say "alive" <p6eval> nom ebd4d8: OUTPUT«Could not find symbol 'A::&B' [...] * masak submits rakudobug So, defining the role B in a class enables us to refer to the role as A::B later, but defining the role in another role doesn't. There's nothing in the spec to suggest there should be a difference here.