# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #111932]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111932 >


<masak> p6: my Str $s = "OH HAI"; $s = Nil; say $s
<p6eval> rakudo 1a468d: OUTPUT«Type check failed in assignment to
'$s'; expected 'Str' but got 'Nil' [...]
<p6eval> ..niecza v15-4-g1f35f89: OUTPUT«Str()␤»
* masak submits rakudobug

S02:2265:

"Assigning C<Nil> to any scalar container causes the container to
throw out any contents and restore itself to an uninitialized state
(after which it will contain an object appropriate to the declared
default of the container, where C<Any> is the default default)."

Reply via email to