Commit 79cf7c83 authored by Robert Griesemer's avatar Robert Griesemer Committed by Dmitri Shuralyov
Browse files

[release-branch.go1.18] go/types, types2: fix scoping for iteration variables...

[release-branch.go1.18] go/types, types2: fix scoping for iteration variables declared by range clause

Also correct scope position for such variables.
Adjusted some comments.

Fixes #51437.

Change-Id: Ic49a1459469c8b2c7bc24fe546795f7d56c67cb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/389594


Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: default avatarCuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: default avatarRobert Findley <rfindley@google.com>
(cherry picked from commit d3fe4e19)
Reviewed-on: https://go-review.googlesource.com/c/go/+/390018


Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent 9f40b4f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment