From 960e15c183f2a5105beccd85ff50aaa47d39fa01 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 17 Dec 2019 16:48:38 -0800 Subject: [PATCH] go/types: print implementation type in tracing output of types Change-Id: I9d48540413addaac4b2a6e2b821e9ef63e97c983 --- src/go/types/typexpr.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/go/types/typexpr.go b/src/go/types/typexpr.go index 3dc70e92e8..5ef84b1b27 100644 --- a/src/go/types/typexpr.go +++ b/src/go/types/typexpr.go @@ -7,6 +7,7 @@ package types import ( + "fmt" "go/ast" "go/constant" "go/token" @@ -224,7 +225,7 @@ func (check *Checker) typInternal(e ast.Expr, def *Named) (T Type) { check.indent++ defer func() { check.indent-- - check.trace(e.Pos(), "=> %s", T) + check.trace(e.Pos(), "=> %s (%s)", T, fmt.Sprintf("%T", T)) }() }