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

Owner: Nobody
Requestors: alex.jakimenko [at]

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

Subject: [LTA] “is default” trait is compile-time, but no warning is printed when I do stupid things (is default($x))
my $x = 42;
my @a is default($x);
say @a[1]


It is doc-ed correctly, so one might argue that the user should've known better. But it is very LTA, and if there is a way to warn the user (or why warn, let's make it a compile-time error?) then we should definitely do it.

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