I've added a test for this in r27179 at the end of S06-signature/arity.t It looks like this:
#?rakudo todo 'bug #66868: Zero-arg sub interpreted as parameterless' dies_ok { a_zero( 'hello', 'world' ) }, 'no matching sub signature'; I wrote this assuming that the error that's supposed to occur is a run time error. If that's not the case, the test needs adjustment. Kyle. On Mon, Jun 22, 2009 at 12:58 PM, Trey Harris<perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by Trey Harris > # Please include the string: [perl #66868] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66868 > > > > 13:52 < Trey> rakudo: sub foo() { say 'hi'}; foo('hi', 'mom'); > 13:52 < p6eval> rakudo 10f223: OUTPUT«hi» > > According to TimToady, this should error out with no matching sub > signature. > > -- > Trey Ethan Harris (/t͡ʃreɪ ˈiːθən ˈhɛrəs/) http://www.lopsa.org/ > President, LOPSA -- The League of Professional System Administrators > Opinions expressed above are not necessarily those of LOPSA. >