|| at May 28, 2016 at 12:03 pm
^^ but that was wrong too.
Type check failed in assignment to $a; expected Str:D but got Nil
Going to go lie down for a bit now....
On Sat, May 28, 2016 at 10:02 PM Lloyd Fournier wrote:
Type check failed in assignment to $a; expected Str:D but got (Mu)
(sorry for the spam)
On Sat, May 28, 2016 at 10:00 PM Lloyd Fournier wrote:
Type check failed in assignment to $a; expected Str:D but got Mu (Mu)
in block <unit> at -e line 1
It can also happen on assignment to array and hash elements.
On Sat, May 28, 2016 at 9:59 PM Lloyd Fournier <firstname.lastname@example.org
# New Ticket Created by Lloyd Fournier
# Please include the string: [perl #128277]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=128277
my Str:D $a = Nil; say $a; # (Str:D)
say $a.VAR.default; #(Str:D)
:D variables in general cannot have a default default. Therefore if the
default default should be to throw an exception when it is acessed. My
answer would be: