This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve: a non-binding use of a global may precede its binding
According to the agreed Skylark spec, and unlike the Python semantics currently implemented, this program should yield a dynamic error: print(len) # dynamic error: uninitialized global len = 1 print(len) We now defer the resolution of forward-uses at top level until the end of the module, just as we do for locals. Fixes #116 Change-Id: I6b9c12dda1b9c244748ab4f5a9acf4a43721c215
- Loading branch information
Showing
3 changed files
with
26 additions
and
19 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