tools/go/analysis/passes/stdmethods
Daniel Martí 139d099f66 go/analysis: use TypeString when matching types
As Alan rightfully guessed, porting the stdmethods check to use go/types
required the use of types.TypeString not only when printing signatures
in warnings, but also when matching them.

Added a simple test case too.

Fixes golang/go#28792.

Change-Id: Ifbbdd4b1a2f1090d6f9a1674d52b8f0887a67d06
Reviewed-on: https://go-review.googlesource.com/c/149977
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
2018-11-19 13:03:50 +00:00
..
testdata/src/a go/analysis: use TypeString when matching types 2018-11-19 13:03:50 +00:00
stdmethods.go go/analysis: use TypeString when matching types 2018-11-19 13:03:50 +00:00
stdmethods_test.go go/analysis/passes: add doc and copyright comments 2018-10-16 20:28:15 +00:00