go/types: print implementation type in tracing output of types

Change-Id: I9d48540413addaac4b2a6e2b821e9ef63e97c983
This commit is contained in:
Robert Griesemer 2019-12-17 16:48:38 -08:00
parent 118728b8c2
commit 960e15c183
1 changed files with 2 additions and 1 deletions

View File

@ -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))
}()
}