]> Cypherpunks repositories - gostls13.git/commit
go/types: refer to structural rather than single underlying type in errors
authorRobert Findley <rfindley@google.com>
Tue, 16 Nov 2021 03:33:22 +0000 (22:33 -0500)
committerRobert Findley <rfindley@google.com>
Tue, 16 Nov 2021 15:16:41 +0000 (15:16 +0000)
commit46e98d489fda3bc1e36af92ee625b2fce3c1f88e
tree188faf99ff56fb1164a2ec215b1fae39d26f5e35
parent50dac3b410b9bc47dabc3f3c2afd21f7aecfb118
go/types: refer to structural rather than single underlying type in errors

This is a port of CL 362997 from types2 to go/types. Some error
positions were adjusted in tests.

Change-Id: I6a932aee1a8d9bcbf4cd8c16a95bbb41b5c7e13f
Reviewed-on: https://go-review.googlesource.com/c/go/+/363990
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/go/types/builtins.go
src/go/types/index.go
src/go/types/stmt.go
src/go/types/testdata/check/builtins.go2
src/go/types/testdata/check/typeparams.go2