]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: add predicate to missingMethod signature
authorRobert Griesemer <gri@golang.org>
Tue, 28 Feb 2023 23:04:35 +0000 (15:04 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 1 Mar 2023 21:23:50 +0000 (21:23 +0000)
commit09852e75acc8228887713e75e9c88dc864978065
tree04877a5ce5803e385b37acd5ac7be6306cf8b31f
parent052a36ccbe698b5f2be9ac097fc2403428f200d5
go/types, types2: add predicate to missingMethod signature

This allows us to use missingMethod with different type comparers,
such as the global Identical predicate, or a unifier.

Preparation for the next CL.

Change-Id: I237fd9dd7feb3708847ae6d9a112bcdd0aa1ecb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/472297
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/lookup.go
src/go/types/instantiate.go
src/go/types/lookup.go