# New Ticket Created by Zoffix Znet # Please include the string: [perl #131387] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131387 >
$z is `Nil` without my having to assign anything, while `$!z` is Any. To make `$!z` Nil I also have to assign Nil to it: <Zoffix___> m: my $z is default(Nil); dd $z; class Foo { has $!z is default(Nil); method x { dd $!z } }.new.x <camelia> rakudo-moar 0c5fe5: OUTPUT: «Nil $z = NilAny $!z = Any»