commit | db5d12bad83992a4f0d17c6546406f3615d69821 | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Tue Mar 19 15:51:16 2024 -0400 |
committer | Alan Donovan <adonovan@google.com> | Mon Mar 25 21:49:14 2024 +0000 |
tree | fc8eb6e3e8ab98a33887f60c1feeb5f17bd6fc80 | |
parent | 2c8dd3ec051baf3b01f9348d9397f9d64ed3c5a3 [diff] |
go/types/internal/play: display method receiver type Change-Id: Ib42e91d90ecd6e3bda69dbfa6ae2489fd2a0185c Reviewed-on: https://go-review.googlesource.com/c/tools/+/572476 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Tim King <taking@google.com>
diff --git a/go/types/internal/play/play.go b/go/types/internal/play/play.go index 845e26c..c88bba5 100644 --- a/go/types/internal/play/play.go +++ b/go/types/internal/play/play.go
@@ -275,8 +275,8 @@ origin = obj.Origin() case *types.Func: - if obj.Type().(*types.Signature).Recv() != nil { - kind = "method" + if recv := obj.Type().(*types.Signature).Recv(); recv != nil { + kind = fmt.Sprintf("method (with recv %v)", recv.Type()) } origin = obj.Origin()