# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74326] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74326 >
<masak> rakudo: class A { method foo($bar:) { say $bar.WHAT } }; A.new.foo( :bar(42) ) <p6eval> rakudo b9aaa3: OUTPUT«Too many positional parameters passed; got 1 but expected 1 [...] * masak submits LTA rakudobug It's questionable whether an invocant can be specified both by the dot-call form and by passing a named parameter. In any rate, the nonsensical error can be improved; we're not passing *any* positional parameters, and if Rakudo got 1 but expected 1 it should not throw an error.