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> |
||
---|---|---|
.. | ||
testdata/src/a | ||
stdmethods.go | ||
stdmethods_test.go |