]> Cypherpunks repositories - gostls13.git/commit
go/types: slightly relax notion of structural type
authorRobert Findley <rfindley@google.com>
Tue, 16 Nov 2021 03:42:41 +0000 (22:42 -0500)
committerRobert Findley <rfindley@google.com>
Tue, 16 Nov 2021 15:16:49 +0000 (15:16 +0000)
commit289c930750fccac6aca578c675694b612532fd24
treecc521179adea667d817828ec568a3eb7202cd125
parent46e98d489fda3bc1e36af92ee625b2fce3c1f88e
go/types: slightly relax notion of structural type

This is a port of CL 363075 from types2 to go/types, adjusted for the
different error reporting API, and to adjust positions of error messages
in tests.

Change-Id: Ic6bfedf1152eff94bad20725b56e6ba804b2e3e8
Reviewed-on: https://go-review.googlesource.com/c/go/+/363991
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/expr.go
src/go/types/stmt.go
src/go/types/testdata/check/typeparams.go2
src/go/types/testdata/fixedbugs/issue43671.go2
src/go/types/testdata/fixedbugs/issue45920.go2 [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue47115.go2
src/go/types/type.go