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


Consider the following snippet:

23:28 < psch> m: role Bar::Foo { }; class A { submethod BUILD { self does 
Bar::Foo } }; A.new.WHAT.say
23:28 <+camelia> rakudo-moar 617bb4: OUTPUT«(Foo})␤»

Clearly, A is not of type 'Foo}'. As far as I can tell Perl6::Metamodel::Naming 
is involved, although I'm not sure why this only happens with mixins during 
BUILD. I'd expect .WHAT to report 'A+{Bar::Foo}' instead.

Reply via email to