]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: implement Checker.implements
authorRobert Griesemer <gri@golang.org>
Sun, 14 Nov 2021 19:29:45 +0000 (11:29 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 15 Nov 2021 21:22:17 +0000 (21:22 +0000)
commite08aae2ee443ba8bb16b8ce9c5d3d8d4d3cfa82b
tree990e77ce418942c9868550f8d2aab3e39185c5cd
parentfda92615040c831bdcd812fd20ddb0da9dcef70b
cmd/compile/internal/types2: implement Checker.implements

Checker.implements implements the complete interface
"implements" predicate. Use it instead of Checker.satisfies.
This is mostly a refactoring of the code but the constraint
types have already been instatiated with the respective type
arguments as needed before calling "implements".
Future CLs will address the various TODOs.

Change-Id: If530cca36643a561282361348f1526157a7182de
Reviewed-on: https://go-review.googlesource.com/c/go/+/363837
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue45920.go2