mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
c333e7a7b6
TBR: gri I cannot create an issue on the tracker for some reason, so here it is: go vet contains this snippet: if types.IsAssignableTo(typ, errorType) || types.IsAssignableTo(typ, stringerType) { It's getting the wrong answer: It claims interface { f() } or even interface { f() float64 } matches the Error and Stringer interfaces. Both of them. This causes a test failure: $ go test code.google.com/p/go.tools/cmd/vet BUG: errchk: testdata/print.go:124: missing expected error: '"for printf verb %s of wrong type"' $ This worked until very recently. R=gri CC=golang-dev https://golang.org/cl/12398043 |
||
---|---|---|
.. | ||
asm1.s | ||
asm2.s | ||
asm3.s | ||
asm.go | ||
assign.go | ||
atomic.go | ||
buildtag_bad.go | ||
buildtag.go | ||
composite.go | ||
deadcode.go | ||
method.go | ||
print.go | ||
rangeloop.go | ||
shadow.go | ||
structtag.go |