# New Ticket Created by "Brian S. Julin"
# Please include the string: [perl #65128]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65128 >
The following work as expected:
my Num List sub f () { return ("A") };
my Num List sub f () { return (1) };
my List sub f () { return () };
The following dies with "Type check failed on return value"
my Num List sub f () { return () };
And as an aside, type checks seem to be skipped for implicit returns:
my Num List sub f () { ("A") }; f.say; # says "A"