# New Ticket Created by Rob Hoelz # Please include the string: [perl #119001] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119001 >
If I define a MAIN sub with a Str parameter and pass an integer argument, the type check fails and MAIN is never called. '10' is technically a string, so I think it should still pass a string to MAIN. (Example code attached)
use v6; sub MAIN(Str $value) { } # output when I run perl6 main-str-int-argument.p6 10: #`( $ perl6 main-str-int-argument.p6 10 Usage: main-str-int-argument.p6 <value> )