# 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«[31m===[0mSORRY![31m===[0mCan't
declare a numeric parameter at /tmp/TNYc18FNxt line 1:------> [32msub foo (
$0[33m⏏[31m ) { 1 };[0mParse failedFAILED 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