Skip to content

Commit 34cdff5

Browse files
committed
don't warn if $expr<variable> :!exist
1 parent c2215f0 commit 34cdff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STD.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ grammar P6 is STD {
15461546
}
15471547

15481548
method worry_itemlist($expr) {
1549-
if $expr<variable> {
1549+
if %$expr<variable> :exists {
15501550
my $var = $expr<variable>.Str;
15511551
if substr($var,0,1) eq '$' {
15521552
self.cursor($expr.from).worry("'for $var' will never flatten a \$ variable;\n\tto force list interpolation, please use either 'for \@$var' or 'for $var\[]';\n\tif you just want item topicalization, use 'given $var' instead");

0 commit comments

Comments
 (0)