]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: use Checker.implements in operand.assignableTo
authorRobert Griesemer <gri@golang.org>
Thu, 27 Jan 2022 18:52:22 +0000 (10:52 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 28 Jan 2022 22:21:43 +0000 (22:21 +0000)
commit25b4b862f29900af00c794424b033b01eb5ab0cb
treeb2eb20fca50dbd120ee48dec88e7fc841f37b69e
parent2e30c4b4bb7c4426ebc27e8af6d0570dbd97054b
go/types, types2: use Checker.implements in operand.assignableTo

Now that we have the detailed error reporting in Checker.implements
we don't need it anymore in operand.assignableTo and can simply call
Checker.implements. This also more directly matches the spec.

For #50646.

Change-Id: Ic44ced999c75be6cc9edaab01177ee0495147ea1
Reviewed-on: https://go-review.googlesource.com/c/go/+/381435
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/operand.go
src/cmd/compile/internal/types2/testdata/check/issues.src
src/go/types/instantiate.go
src/go/types/operand.go
src/go/types/testdata/check/issues.src