Skip to content

Commit

Permalink
Add static name resolution
Browse files Browse the repository at this point in the history
This implements a part of the name resolution document: https://github.com/bazelbuild/proposals/blob/master/docs/2018-06-18-name-resolution.md
and it is enabled with the flag --incompatible_static_name_resolution

There are two visible changes:

1. Local variables can be used before their definition point.
2. Local variables will shadow global variables, even if they are not initialiazed yet.

#5637

RELNOTES: None.
PiperOrigin-RevId: 210562752
  • Loading branch information
laurentlb authored and Copybara-Service committed Aug 28, 2018
1 parent 0bd89dc commit caafe30
Show file tree
Hide file tree
Showing 6 changed files with 197 additions and 157 deletions.
Loading

0 comments on commit caafe30

Please sign in to comment.