]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] go/types: cleanups around receiver type checks
authorRob Findley <rfindley@google.com>
Sat, 17 Jul 2021 00:40:58 +0000 (20:40 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 19 Jul 2021 17:09:14 +0000 (17:09 +0000)
commitbaeabf3b366fad1eae113f8334451906dac61c0d
treee24b69cdb5ac6e023fa26737cdc507e0ae3720c2
parentb3d91e3a24f95a6a5906dab28c3392a542ccc81c
[dev.typeparams] go/types: cleanups around receiver type checks

This is a port of CL 333770 to go/types, adjusted for the error
reporting API and to not support compiler error messages. An error
message changed (to 'invalid receiver type' from just 'invalid
receiver'), so a test had to be adjusted.

Change-Id: I166e8831d8c9f98ebfb0270fe5221586fc112825
Reviewed-on: https://go-review.googlesource.com/c/go/+/335079
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/go/types/signature.go
src/go/types/testdata/examples/methods.go2
src/go/types/testdata/fixedbugs/issue28251.src