]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: add additional tests using core types during unification
authorRobert Griesemer <gri@golang.org>
Sat, 12 Feb 2022 18:24:38 +0000 (10:24 -0800)
committerRobert Griesemer <gri@golang.org>
Sun, 13 Feb 2022 02:11:11 +0000 (02:11 +0000)
commit5bd734839d9967f48184431b978c2dabb39c8953
treef197c374d5e3940c37885eec5a8dae20944560d2
parentf03ab0e0140544abfb10698b9171a91f9dd9c7a5
go/types, types2: add additional tests using core types during unification

This change adds tests that use a type parameter's core type during
function argument type inference, not just during constraint type
inference.

Also, fix a typo in a comment.

For #50755.

Change-Id: I0c3196bdce5338341e0b6dfd7c63efb2e43ace25
Reviewed-on: https://go-review.googlesource.com/c/go/+/385376
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/testdata/fixedbugs/issue50755.go2
src/cmd/compile/internal/types2/unify.go
src/go/types/testdata/fixedbugs/issue50755.go2
src/go/types/unify.go