diff --git a/src/go/types/type.go b/src/go/types/type.go index f4cf61d8e67..4c681a79c4d 100644 --- a/src/go/types/type.go +++ b/src/go/types/type.go @@ -262,7 +262,7 @@ func NewInterface(methods []*Func, embeddeds []*Named) *Interface { } sort.Sort(byUniqueMethodName(methods)) - if embeddeds == nil { + if embeddeds != nil { sort.Sort(byUniqueTypeName(embeddeds)) }