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

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at] gmx.de>
Cc:
AdminCc:

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



Date: Tue, 26 Jul 2016 19:03:28 +0200 (CEST)
To: rakudobug [...] perl.org
Subject: type capture forces order of positional arguments
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
Download (untitled) / with headers
text/plain 417b
sub f(&c:(T), ::T @l){}; # OUTPUT«===SORRY!=== Error while compiling <tmp>␤Invalid typename 'T' in parameter declaration.␤at <tmp>:1␤------> sub f(&c:(T⏏), @l){};␤» # expected same as: sub f(::T @l, &c:(T)){}; # also note: sub f(&c:(::T $), T @l){}; # OUTPUT«===SORRY!=== Error while compiling <tmp>␤Invalid typename 'T' in parameter declaration.␤at <tmp>:1␤------>sub f(&c:(::T), T⏏@l){};␤»


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