6 ms·
You mean like: my $a of Int = 42; say $a; # 42 or my $a of Int = "foo";' # Type check failed in assignment to $a; expected Int but go
by lizmat 8mo ago
You mean like:
my $a of Int = 42;
say $a; # 42
or
my $a of Int = "foo";'
# Type check failed in assignment to $a; expected Int but got Str ("foo")
?