You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
p6rt
added
the
LTA
Less Than Awesome; typically an error message that could be better
label
Jan 5, 2020
Migrated from rt.perl.org#128879 (status was 'new')
Searchable as RT128879$
The text was updated successfully, but these errors were encountered: