]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.21] go/types, types2: use exact unification when comparing interf...
authorRobert Griesemer <gri@golang.org>
Mon, 14 Aug 2023 21:07:56 +0000 (14:07 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 17 Aug 2023 21:05:01 +0000 (21:05 +0000)
commit7437db10858fa147da00a2b67444ed42200bf161
tree2921cf4abb6c3ee057957a2dd6defd40142a3e4b
parented527ecfb2042fb60e1ee45ecef77e904d5ba8b3
[release-branch.go1.21] go/types, types2: use exact unification when comparing interface methods

Irrespective of whether unification is exact or inexact, method
signatures of interfaces must always match exactly: a type never
satisfies/implements an interface if relevant method signatures
are different (i.e., not identical, possibly after substitution).

Fixes #61959.

Change-Id: I20c0aa28ac86e2edec615b40f2269938e4a96938
Reviewed-on: https://go-review.googlesource.com/c/go/+/519435
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/519416
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go
src/internal/types/testdata/fixedbugs/issue61879.go [new file with mode: 0644]