mirror of https://github.com/golang/go.git
go/types: print implementation type in tracing output of types
Change-Id: I9d48540413addaac4b2a6e2b821e9ef63e97c983
This commit is contained in:
parent
118728b8c2
commit
960e15c183
|
|
@ -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))
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue