# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #69676] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=69676 >
<masak> rakudo: class A { has $.a; has $.b; method new($a, $b) { self.new(:$a, :$b) } }; say .a, .b for A.new(42, "OH HAI") <p6eval> rakudo daf221: OUTPUT«invalid arg type in named portion of args [...] <masak> above, I tried to delegate to the Object::new method <masak> another attempt: <masak> rakudo: class A { has $.a; has $.b; method new($a, $b) { self.Object::new(:$a, :$b) } }; say .a, .b for A.new(42, "OH HAI") <p6eval> rakudo daf221: OUTPUT«elements() not implemented in class 'Sub'in method A::new [...] <masak> o.O * masak submits rakudobug <masak> both of those should work, no? <moritz_> masak: aye. There's a (known to me at least) problem with the default new() method disappearing when an own such method is defined <masak> aye. <masak> I knew that too. :) <masak> but now I also know that it cannot be dug up either. <moritz_> maybe moving Object.new to the setting migth help