func eqTypes(n cc.Node, a, b cc.Type) bool { if a.Kind() == cc.Ptr { if t := a.Element(); t.Kind() == cc.Function { a = t } } if b.Kind() == cc.Ptr { if t := b.Element(); t.Kind() == cc.Function { b = t } } return removeQualifiers(a.String()) == removeQualifiers(b.String()) }