mirror of https://github.com/golang/go.git
The logic to extract the receiver identifier from a func decl was incorrect, accepting only the common T and *T syntaxes, and panicking on *(T). Fix this by copying the logic from go/types. Fixes golang/go#44806 Change-Id: I1c87ab21ac04e484972bc4161180ca1112df3c73 Reviewed-on: https://go-review.googlesource.com/c/tools/+/298852 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| a | ||
| b | ||
| p | ||
| issue44806.go | ||
| main.go | ||
| query.go | ||
| query.go.golden | ||