[perl #130253] [NYI] Coercion type in variable declarations

2016-12-06 Thread Michael Schaap
(Apologies if this appears twice.) I was told on IRC to report this as an NYI. https://irclog.perlgeek.de/perl6/2016-12-03#i_13674766 Thanks, - Michael

Re: [perl #130253] [NYI] Coercion type in variable declarations

2016-12-06 Thread Michael Schaap
On 6-Dec-16 17:36, Will Coleda via RT wrote: On Sat, 03 Dec 2016 11:31:59 -0800, pe...@mscha.org wrote: Coercion type works quite nicely in signatures, e.g. sub foo(Int(Cool) $f) { say $f.WHAT; } foo "42";# (Int) but it doesn't work yet in variable declarations,

[perl #130253] [NYI] Coercion type in variable declarations

2016-12-06 Thread Will Coleda via RT
On Sat, 03 Dec 2016 11:31:59 -0800, pe...@mscha.org wrote: > Coercion type works quite nicely in signatures, e.g. > > sub foo(Int(Cool) $f) { > say $f.WHAT; > } > foo "42";# (Int) > > but it doesn't work yet in variable declarations, e.g. > > my Int(Cool) $x; $x

[perl #130253] [NYI] Coercion type in variable declarations

2016-12-05 Thread via RT
# New Ticket Created by Michael Schaap # Please include the string: [perl #130253] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130253 > Coercion type works quite nicely in signatures, e.g. sub foo(Int(Cool) $f) {