Add a number for the "error" type by default
Этот коммит содержится в:
родитель
a5252d07f0
коммит
cfd20c7a12
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -94,7 +94,7 @@ func (p *Program) AnalyseCallgraph() {
|
||||||
// Find all types that are put in an interface.
|
// Find all types that are put in an interface.
|
||||||
func (p *Program) AnalyseInterfaceConversions() {
|
func (p *Program) AnalyseInterfaceConversions() {
|
||||||
// Clear, if AnalyseTypes has been called before.
|
// 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{}
|
p.typesWithMethods = map[string]*InterfaceType{}
|
||||||
|
|
||||||
for _, f := range p.Functions {
|
for _, f := range p.Functions {
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче