From 4dcaee97b259e88d2377a406f4331948b865853e Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 3 Feb 2014 11:39:10 -0800 Subject: [PATCH] go.tools/cmd/vet: use new Assertable predicate (fix build) LGTM=r R=r CC=golang-codereviews https://golang.org/cl/59210045 --- cmd/vet/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/vet/types.go b/cmd/vet/types.go index a5bdeea46..8149a4ef0 100644 --- a/cmd/vet/types.go +++ b/cmd/vet/types.go @@ -103,7 +103,7 @@ func (f *File) matchArgTypeInternal(t printfArgType, typ types.Type, arg ast.Exp } // If we can use a string, might arg (dynamically) implement the Stringer or Error interface? if t&argString != 0 { - if types.Implements(typ, errorType, false) || types.Implements(typ, stringerType, false) { + if types.Assertable(errorType, typ) || types.Assertable(stringerType, typ) { return true } }