Skip Menu |
Report information
Id: 127205
Status: new
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] Incorrectly places '{' in signature incorrectly reports block gobbling
Download (untitled) / with headers
text/plain 858b
The error in the code is that '{' for the $y parameter is BEFORE the 'where' instead of after it. The error messages, however, show a different error: <Zoffix> m: sub foo ( $x where { any <foo bar> }, $y { where 42 } ) { }; <camelia> rakudo-moar f1dd49: OUTPUT«===SORRY!===␤Expression needs parens to avoid gobbling block␤at /tmp/zGERsntt2y:1␤------> sub foo ( $x where { any <foo bar> }⏏, $y { where 42 } ) { };␤Missing block (apparently claimed by expression)␤at /tmp/zGERsntt2y:1␤------>…» <Zoffix> m: sub foo ( $x where { 42 }, $y { where 42 } ) { }; <camelia> rakudo-moar f1dd49: OUTPUT«===SORRY!===␤Expression needs parens to avoid gobbling block␤at /tmp/gSOsYvX4uK:1␤------> sub foo ( $x where { 42 }⏏, $y { where 42 } ) { };␤Missing block (apparently claimed by expression)␤at /tmp/gSOsYvX4uK:1␤------> sub foo …»


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