passes: small code cleanup
Этот коммит содержится в:
родитель
734b0cb6bc
коммит
a1359d7f64
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -114,7 +114,7 @@ func (p *Program) AnalyseInterfaceConversions() {
|
||||||
name := MethodName(sel.Obj().(*types.Func))
|
name := MethodName(sel.Obj().(*types.Func))
|
||||||
t.Methods[name] = sel
|
t.Methods[name] = sel
|
||||||
}
|
}
|
||||||
p.typesWithMethods[instr.X.Type().String()] = t
|
p.typesWithMethods[name] = t
|
||||||
} else if _, ok := p.typesWithoutMethods[name]; !ok && len(methods) == 0 {
|
} else if _, ok := p.typesWithoutMethods[name]; !ok && len(methods) == 0 {
|
||||||
p.typesWithoutMethods[name] = len(p.typesWithoutMethods)
|
p.typesWithoutMethods[name] = len(p.typesWithoutMethods)
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче