Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't warn if $expr<variable> :!exist
  • Loading branch information
TimToady committed Aug 19, 2013
1 parent c2215f0 commit 34cdff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STD.pm6
Expand Up @@ -1546,7 +1546,7 @@ grammar P6 is STD {
}

method worry_itemlist($expr) {
if $expr<variable> {
if %$expr<variable> :exists {
my $var = $expr<variable>.Str;
if substr($var,0,1) eq '$' {
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");
Expand Down

0 comments on commit 34cdff5

Please sign in to comment.