Skip Menu |
Report information
Id: 131842
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] Error says wanted number of arguments is 1; passed 1
Download (untitled) / with headers
text/plain 248b
20:49 ufobat m: sub foo (|a, :%e) { a.perl.say }; foo(1, :e( a => 1)) 20:49 camelia rakudo-moar abf1cf: OUTPUT: «Too many positionals passed to 'foo'; expected 1 argument but got 1? in sub foo at <tmp> line 1? in block <unit> at <tmp> line 1??»
Date: Sat, 5 Aug 2017 08:20:32 +0200
To: "Zoffix Znet (via RT)" <perl6-bugs-followup [...] perl.org>
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: Re: [perl #131842] [LTA] Error says wanted number of arguments is 1; passed 1
Download (untitled) / with headers
text/plain 720b
Show quoted text
> On 5 Aug 2017, at 00:43, Zoffix Znet (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131842] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131842 > > > > 20:49 ufobat m: sub foo (|a, :%e) { a.perl.say }; foo(1, :e( a => 1)) > 20:49 camelia rakudo-moar abf1cf: OUTPUT: «Too many positionals passed to 'foo'; expected 1 argument but got 1? in sub foo at <tmp> line 1? in block <unit> at <tmp> line 1??»
This should probably be a compile time error, as: $ 6 'sub foo (:%e, |a) { a.perl.say }; foo(1, :e( a => 1))' \(1) works fine. Well, fsvo :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org