1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:44:43 -07:00
go/cmd
Rob Pike c333e7a7b6 go.tools/cmd/vet: fix go.tools build
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
2013-08-03 15:56:56 +10:00
..
cover all: be more idiomatic when documenting boolean return values. 2013-07-23 10:37:43 +10:00
godoc go.tools/cmd/godoc: fix typo 2013-08-01 17:43:31 +10:00
vet go.tools/cmd/vet: fix go.tools build 2013-08-03 15:56:56 +10:00