# New Ticket Created by Michael Schaap
# Please include the string: [perl #130253]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130253 >
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 = "42"; # Coercion Int(Cool) is insufficiently
type-like to qualify a variable
Using Rakudo Star 2016.11:
This is Rakudo version 2016.11 built on MoarVM version 2016.11
implementing Perl 6.c.