On Mon Jan 18 06:00:47 2016, gfldex wrote:
> sub foo(::T $t --> T){ T.new };
> my Int $i = 42;
> foo($i);
>
> # OUTPUT«Type check failed for return value; expected T but got Int in
> # sub foo at /tmp/HqdmxVFmny line 1 in block at /tmp/HqdmxVFmny
> # line 1»
As a status update: This look
# New Ticket Created by Wenzel Peppmeyer
# Please include the string: [perl #127306]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=127306 >
sub foo(::T $t --> T){ T.new };
my Int $i = 42;
foo($i);
# OUTPUT«Type check failed