# New Ticket Created by  Paweł Pabian 
# Please include the string:  [perl #98244]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=98244 >


STD gives useful message here:

[14:35] <bbkr_> std: sub foo ( $0 ) { 1 };
[14:35] <p6eval> std e3c970e: OUTPUT«===SORRY!===␤Can't 
declare a numeric parameter at /tmp/TNYc18FNxt line 1:␤------> sub foo ( 
$0⏏ ) { 1 };␤Parse failed␤FAILED 00:01 119m␤»


Rakudo gives only simple parse error:

bbkr:Implix bbkr$ perl6 -e 'sub foo ( $0 ) { 1 };'
===SORRY!===
Confused at line 1, near "sub foo ( "



And when type is declared message is more confusing.

bbkr:Implix bbkr$ perl6 -e 'sub foo ( Str $0 ) { 1 };'
===SORRY!===
Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at line 1

Reply via email to