]> Cypherpunks.ru repositories - gostls13.git/commit
spec: fix unification rule for inexact interface unification
authorRobert Griesemer <gri@golang.org>
Mon, 14 Aug 2023 21:21:53 +0000 (14:21 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 17 Aug 2023 22:56:50 +0000 (22:56 +0000)
commitab3332eea9cff20b465193a3ef3a8f6ce796da2f
treeced18b8a37fb642764f86e8bb8e0027dceb01941
parent639f6f7e789ffbafd3d6f4327dbc10586e8163db
spec: fix unification rule for inexact interface unification

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).

This change matches the fix https://go.dev/cl/519435.

For #61879.

Change-Id: I28b0a32d32626d85afd32e107efce141235a923d
Reviewed-on: https://go-review.googlesource.com/c/go/+/519455
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
doc/go_spec.html