diff --git a/compiler/interface-lowering.go b/compiler/interface-lowering.go index a9812980..00f0df20 100644 --- a/compiler/interface-lowering.go +++ b/compiler/interface-lowering.go @@ -415,7 +415,7 @@ func (p *lowerInterfacesPass) run() { for _, t := range p.types { typeSlice = append(typeSlice, t) } - sort.Sort(typeSlice) + sort.Sort(sort.Reverse(typeSlice)) // A type code must fit in 16 bits. if len(typeSlice) >= 1<<16 {