]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: enable interface inference
authorRobert Griesemer <gri@golang.org>
Tue, 23 May 2023 21:32:41 +0000 (14:32 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 23 May 2023 22:13:57 +0000 (22:13 +0000)
commit6b7aab7750a8b41b15bac4d598470883c245a0d7
treeacfbf45853fcca35ddce5f6ea27cfb70e64032fa
parent948f11b8a83a7c7762f43b3dac513d7311a4bb71
go/types, types2: enable interface inference

This CL sets enableInterfaceInference to true.
If problems arise due to this during the freeze, revert this CL.

Fixes #41176.
Fixes #57192.

Change-Id: I881ea6842e9c1101b24d9780323c6af365a40d3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/497657
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go
src/internal/types/testdata/fixedbugs/issue39976.go
src/internal/types/testdata/fixedbugs/issue41176.go
src/internal/types/testdata/fixedbugs/issue53692.go
src/internal/types/testdata/fixedbugs/issue57192.go