]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: change Checker.verify to return an error
authorRobert Findley <rfindley@google.com>
Fri, 13 Aug 2021 17:15:15 +0000 (13:15 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 18 Aug 2021 22:16:57 +0000 (22:16 +0000)
commiteda3de0f79f3008aed21c04df546efa2ace65683
treed5302b0eb127cfb74927ff81850fcd6cf0f3a362
parent805d38a3529918a708875b068ccee46a7edcead0
cmd/compile/internal/types2: change Checker.verify to return an error

In preparation for upcoming API changes, change the internal API for
verification of type arguments to return an error and argument index,
and use this to lift up error reporting into Instantiate.

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