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


Named params print required types:

17:33 bbkr: r: sub MAIN (Int :$x!) {...}
17:33 camelia: rakudo-{moar,jvm} c2a57e: OUTPUT«Usage:␤  /tmp/tmpfile -x=<Int> 
␤»


However positional types does not:

17:33 bbkr: r: sub MAIN (Int $x!) {...}
17:33 camelia: rakudo-{moar,jvm} c2a57e: OUTPUT«Usage:␤  /tmp/tmpfile <x> ␤»


I think this is bug because type is more important than irrelevant variable 
name.
Expected output is: "Usage:␤  /tmp/tmpfile <Int>"


Reply via email to