# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #121148] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=121148 >
<masak> TimToady: ok, now I'm backlogging. I see a lot of trying stuff out, but any bug is lost in the noise. <masak> TimToady: do you think you could rebase the bug on the present? ;) <TimToady> r: class A { submethod BUILD(:$!v){ }; has $.v; method new(*%_) { say 'OH HAI!'; nextwith(|%_, :v<test>); }; }; class B is A { has $.newfiled }; my $b = B.new(:v('do you see me?'),:newfiled(43)); say 'v: ' ~ $b.v; say 'newfiled: ' ~ $b.newfiled; <camelia> rakudo-jvm 535d91: OUTPUT«OH HAI!v: testnewfiled: 43» <camelia> ..rakudo-moar 535d91: OUTPUT«OH HAI!v: do you see me?newfiled: 43» <camelia> ..rakudo-parrot 535d91: OUTPUT«OH HAI!duplicate named argument in call in method new at /tmp/tmpfile:1 in block at /tmp/tmpfile:1» <TimToady> that one * masak peers at it <masak> ah. <masak> something is definitely up with that one. :) * masak submits rakudobug <masak> r: class A { submethod BUILD(:$!v){ }; has $.v; method new(*%_) { nextwith(|%_, :v<bar>); }; }; class B is A {}; my $b = B.new(:v('foo')); say $b.v <camelia> rakudo-jvm 535d91: OUTPUT«bar» <camelia> ..rakudo-parrot 535d91: OUTPUT«duplicate named argument in call in method new at /tmp/tmpfile:1 in block at /tmp/tmpfile:1» <camelia> ..rakudo-moar 535d91: OUTPUT«foo» <masak> slightly minimaler. <timotimo> hooray <diakopter> wat :) <masak> anyway, in the above WAT, I think Parrot is obviously wrong, so let's drop that one out of the contest. <masak> between the other two, JVM makes the most sense to me. At least two of them is wrong. I think rakudo-jvm is right, above.