# New Ticket Created by Moritz Lenz # Please include the string: [perl #61606] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61606 >
Rakudo (r34146) correctly excludes optional arguments from its counting, but not named ones, which are also optional: $ ./perl6 -e 'sub a($x, $y?) { }; sub b ($x, :$y) { }; say &a.arity; say &b.arity' 1 2 # should be 1 as well $ Tests are in t/spec/S06-signature/arity.t Cheers, Moritz