diff --git a/src/go/types/typestring.go b/src/go/types/typestring.go index 3d30ff98f39..c5f0354aeac 100644 --- a/src/go/types/typestring.go +++ b/src/go/types/typestring.go @@ -235,7 +235,7 @@ func (w *typeWriter) typ(typ Type) { if t.targs != nil { // instantiated type w.typeList(t.targs.list()) - } else if t.TParams().Len() != 0 { + } else if !w.hash && t.TParams().Len() != 0 { // For type hashing, don't need to format the TParams // parameterized type w.tParamList(t.TParams().list()) }