# New Ticket Created by Ayiko
# Please include the string: [perl #118607]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118607 >
use v6;
sub foo() { say 'hi'; };
sub foo($i) { say "hi $i"; };
foo();
Gives as error
===SORRY!===
Redeclaration of routine foo
at test2.pl:3
------> sub foo($i) { say "hi 2"; }<HERE>;
expecting any of:
postfix
statement end
statement modifier
statement modifier loop
horizontal whitespace
Maybe it should mention "multi sub" as a possible fix?
I'm also not sure the "expecting any of" part is helping much in this case...