]> Cypherpunks repositories - gostls13.git/commit
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)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Mar 2022 23:49:01 +0000 (23:49 +0000)
commit6da16b6ad5787a043fc9978d2d009934e3b2e165
tree423f9d1f7da86fa38f46c20662862620c691f6bd
parent0807986fe6bf6040bafa9c415ab72e4cc8e519a4
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>
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