From ffc64162138c30bd186c62504e4206a53f0b3b3e Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 28 Jan 2014 09:22:53 -0800 Subject: [PATCH] go.tools/go/types: print local types unqualified in error/debugging output LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/57630044 --- go/types/errors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/types/errors.go b/go/types/errors.go index 470e512bdc..cbff07848a 100644 --- a/go/types/errors.go +++ b/go/types/errors.go @@ -34,6 +34,8 @@ func (check *checker) sprintf(format string, args ...interface{}) string { args[i] = check.fset.Position(a).String() case ast.Expr: args[i] = ExprString(a) + case Type: + args[i] = TypeString(check.pkg, a) } } return fmt.Sprintf(format, args...)