From cfd20c7a12916f60f41649384272814c334f9d49 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 30 Aug 2018 05:39:41 +0200 Subject: [PATCH] Add a number for the "error" type by default --- passes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes.go b/passes.go index c57267c7..67e3b3ae 100644 --- a/passes.go +++ b/passes.go @@ -94,7 +94,7 @@ func (p *Program) AnalyseCallgraph() { // Find all types that are put in an interface. func (p *Program) AnalyseInterfaceConversions() { // Clear, if AnalyseTypes has been called before. - p.typesWithoutMethods = map[string]int{"interface{}": 0} + p.typesWithoutMethods = map[string]int{"interface{}": 0, "error": 1} p.typesWithMethods = map[string]*InterfaceType{} for _, f := range p.Functions {