]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] go/types, types2: clarify a comment and add an extra test
authorRobert Griesemer <gri@golang.org>
Mon, 28 Feb 2022 05:08:29 +0000 (21:08 -0800)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 4 Mar 2022 20:43:47 +0000 (20:43 +0000)
commit77a142486e59ec8fca135101ca988bb99208d494
tree998924ecdd93609d6be5dcbbe6fb0ef17bd7499e
parentfd5b9b7c07a4e20547cce5df0de22bd71790a121
[release-branch.go1.18] go/types, types2: clarify a comment and add an extra test

Confirm that the current implementation of core type unification
looks correct and update the respective comment. Add an extra test.

Fixes #51376.

Change-Id: I6a603a4baeee2ede5bb4a1d60766204a808936d7
Reviewed-on: https://go-review.googlesource.com/c/go/+/388294
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 6da16b6ad5787a043fc9978d2d009934e3b2e165)
Reviewed-on: https://go-review.googlesource.com/c/go/+/390016
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51376.go2 [new file with mode: 0644]
src/cmd/compile/internal/types2/unify.go
src/go/types/testdata/fixedbugs/issue51376.go2 [new file with mode: 0644]
src/go/types/unify.go