Skip Menu |
Report information
Id: 131387
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at]

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: `is default` value not applied to attributes by default
Download (untitled) / with headers
text/plain 308b
$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 = Nil␤Any $!z = Any␤»

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at