]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: use type variables consistently in Checker.conversion
authorRobert Griesemer <gri@golang.org>
Wed, 10 Nov 2021 05:12:03 +0000 (21:12 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 10 Nov 2021 17:15:52 +0000 (17:15 +0000)
commit0aa194f7589fb5f75fc3a9c34bb69943daf6fc5c
tree4f921a531e7f09c931cfd31211fe41dd63b2db59
parent17980dff368256a0763cf042376d3fb36d06c109
cmd/compile/internal/types2: use type variables consistently in Checker.conversion

We have V and T and Vu and Tu. When calling the various isX predicates
consistently use Vu and Tu.

(We could also use V an T because the predicates call under anyway,
but using Vu and Tu removes an unnecessary call to Named.under if
V or T are *Named.)

Also, removed some outdated comments.

Change-Id: I6fcd9ce5f6292e89ac2afd597b72fd0790e84ff1
Reviewed-on: https://go-review.googlesource.com/c/go/+/362895
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/conversions.go