[perl #127306] type captures in return type is not resolved

2016-10-30 Thread Christian Bartolomaeus via RT
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

[perl #127306] type captures in return type is not resolved

2016-01-18 Thread via RT
# 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