]> Cypherpunks repositories - gostls13.git/commit
go/types: combine all type inference in a single function
authorRob Findley <rfindley@google.com>
Wed, 21 Apr 2021 02:59:59 +0000 (22:59 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 21 Apr 2021 23:21:55 +0000 (23:21 +0000)
commit7bedd477980175aecda5feb782e88041e86c2756
tree394d29566f3ff0cf58d1f5cea13b72b1c4b1627c
parent6639bb894d8770290f1860a4cad8f8726079b870
go/types: combine all type inference in a single function

This is a port of CL 306170 to go/types, adjusted for the different
positioning API.

Some of the error positions in tests had to be adjusted, but I think the
new locations are better.

Change-Id: Ib157fbb47d7483e3c6302bd57f5070bd74602a36
Reviewed-on: https://go-review.googlesource.com/c/go/+/312191
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/fixedbugs/issue40056.go2
src/go/types/call.go
src/go/types/fixedbugs/issue39634.go2
src/go/types/fixedbugs/issue40056.go2
src/go/types/infer.go
src/go/types/testdata/typeparams.go2