# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #69470] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=69470 >
<p6eval> rakudo 9792a2: OUTPUT«Parameter type check failed; expected Int, but got Str for $a in call to fooin sub foo [...] <masak> it also bothers me very slightly that 'foo' is mentioned twice in a row in that message. <masak> is there any situation when those two mentions will differ? <moritz_> well, the 'in foo' is part of the back trace <moritz_> but as a user I'd expect that it doesn't get that far <moritz_> ie that the argument list binding happens before the call <masak> then leave it out the first time. <moritz_> masak: no, that's the wrong solution (IMHO) <masak> moritz_: do you see a way to only say 'foo' once? <moritz_> masak: yes, have the error occur at the position of the caller, not the callee <diakopter> my suggestion: "Unexpected Str $a; expected Int $a NL in sub foo (... <diakopter> (implying that "Str $a" would be the signature if it would have succeeded) * masak submits rakudobug <diakopter> or <diakopter> "Expected Int $a, but got Str for parameter $a in sub foo..." <masak> nice one. <diakopter> basically just moves 'parameter' to the end and more concise
