# New Ticket Created by mt1957 # Please include the string: [perl #130663] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130663 >
Hi, I get the following error using version 2016.08.1-66-g1ff1aae built on MoarVM version 2016.08 implementing Perl 6.c. Cannot resolve caller BUILD(CC+{RR}: ); none of these signatures match: (CC $: Str :$t!, *%_) (CC $: Int :$i!, *%_) in block <unit> at Build2.pl6 line 15 The code which generates the error (on the line with '$c does RR'); role RR { } class CC { multi submethod BUILD ( Str :$t! ) { } multi submethod BUILD ( Int :$i! ) { } } my CC $c .= new(:t<text1>); $c does RR; Removing the last line and add a trait 'does' to the class works but is not what I want. Greetings, Marcel