diff options
| author | Robert Griesemer <gri@golang.org> | 2021-11-03 20:42:44 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2021-11-04 16:36:19 +0000 |
| commit | f934b8326f18c4be2cb26ed1e87621d926ba209b (patch) | |
| tree | f77013f0d5a6eefda7972afa8deec24f94067f77 /src/cmd/vendor/github.com | |
| parent | 6ba68a0581d537edfd6eb2e5675c408f18eb4eed (diff) | |
| download | go-f934b8326f18c4be2cb26ed1e87621d926ba209b.tar.xz | |
cmd/compile/internal/types2: check non-generic conversions first
This enables the elimination of convertibleToImpl again,
with the code structure close to the original non-generic
version, and closely matching the structure of assignableTo.
We also don't need the hasTerm tests; instead we can rely
directly on the mechanism of TypeParam.is which is feeding
a nil term if there are no specific types.
Change-Id: I0385acca779d75c3c961d06afb464714fe51705d
Reviewed-on: https://go-review.googlesource.com/c/go/+/361269
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/vendor/github.com')
0 files changed, 0 insertions, 0 deletions
