(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
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,
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
# 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) {