]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] go/types: clean up index expr implementation for type parameters
authorRob Findley <rfindley@google.com>
Fri, 16 Jul 2021 16:54:37 +0000 (12:54 -0400)
committerRobert Findley <rfindley@google.com>
Sat, 17 Jul 2021 01:38:18 +0000 (01:38 +0000)
commite9836fe31897ef6e8a5c82c3f8fc8c2b31a3bea3
treebe985aea7c059f152b34c0aa03af7e7f4bd8b0a0
parentc4cd76fbbbf0f8b89fee70783103b0c3abb68756
[dev.typeparams] go/types: clean up index expr implementation for type parameters

This is a port of CL 332553 to go/types. The "expr" variable is renamed to
"e" in Checker.indexExpr to be consistent with types2.

Change-Id: I7905bebf2e8dab47256361362b16becf7596cf95
Reviewed-on: https://go-review.googlesource.com/c/go/+/335110
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Robert Findley <rfindley@google.com>
src/go/types/index.go
src/go/types/testdata/check/typeparams.go2
src/go/types/testdata/fixedbugs/issue45635.go2
src/go/types/typeparam.go
src/go/types/typeset.go
src/go/types/typestring.go
src/go/types/union.go