# New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
# Please include the string:  [perl #128879]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128879 >


Code:
my $x = 42;
my @a is default($x);
say @a[1]

Result:
(Any)


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.

Reply via email to