Migrate to calling interfaceType and remove SelfParam

Migrate more tests
This commit is contained in:
Kathy Gray
2025-09-17 18:27:29 +01:00
parent 3eee15f1cb
commit 84ef25afbc
26 changed files with 100 additions and 89 deletions

View File

@@ -3385,10 +3385,10 @@ bool ConstraintSystem::diagnoseAmbiguity(ArrayRef<Solution> solutions) {
if (EmittedDecls.insert(decl).second) {
auto declModule = decl->getDeclContext()->getParentModule();
bool printModuleName = declModule != DC->getParentModule();
auto overloadType = decl->getOverloadSignatureType();
auto diagnoseType = swift::TypeChecker::removeSelfParam(decl, decl->getInterfaceType());
DE.diagnose(decl, diag::found_candidate_in_module,
printModuleName, declModule, overloadType);
printModuleName, declModule, diagnoseType);
}
break;
}