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()