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.
resolve: disallow augmented assignments at toplevel (google#125)
...unless -globalreassign is set. Formerly, the Go implementation permitted x+=y on the basis that we couldn't statically tell whether x was a list (in which case x+=y means x.extend(y), which is not a rebinding), or some other type, in which case it is a forbidden rebinding. This change makes it match the Java implementation. See bazelbuild/starlark#20 (comment) Most non-Bazel-like clients of Starlark set the -globalreassign flag.
- Loading branch information
Showing
4 changed files
with
38 additions
and
53 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
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