• Dmitry Vyukov's avatar
    cmd/gc: fix range typecheck order · 9a36beb2
    Dmitry Vyukov authored
    Typecheck for range variables before typechecking for range body.
    Body can refer to new vars declared in for range,
    so it is preferable to typecheck them before the body.
    Makes typecheck order consistent between ORANGE and OFOR.
    
    This come up during another change that computes some predicates
    on variables during typechecking.
    
    Change-Id: Ic975db61b1fd5b7f9ee78896d4cc7d93c593c532
    Reviewed-on: https://go-review.googlesource.com/3284Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    9a36beb2
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...