forked from google/starlark-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolver: resolve operand of first 'for' clause in enclosing block (g…
…oogle#96) In a comprehension such as [e for v in x], the expression x should be resolved in the outer block, so [x for x in x] is legal. This applies only to the first 'in' operand. This behavior matches Python2 and Python3 and, apparently, Bazel, though I'm pretty sure the existing test modified in this CL was based on Bazel behavior, which must have changed in the meantime. Updated spec and tests.
- Loading branch information
Showing
3 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters