Should be: 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 <lloyd.fo...@gmail.com> wrote: > (continued :P) > 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 < > perl6-bugs-follo...@perl.org> wrote: > >> # 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: >> >