static bool isValidOverload(CanTypeSet &overloads, const ValueDecl *VD) { if (!isOverloadable(VD)) return overloads.empty(); if (overloads.count(VD->getType()->getCanonicalType())) return false; return true; }
static bool isValidOverload(CanTypeSet &overloads, const ValueDecl *VD) { if (!isOverloadable(VD)) return overloads.empty(); return !overloads.count(VD->getInterfaceType()->getCanonicalType()); }