AST: PackConformance::getAssociatedType() => getTypeWitness()

This commit is contained in:
Slava Pestov
2024-09-18 15:27:41 -04:00
parent 6928588dba
commit a911693c8c
4 changed files with 11 additions and 10 deletions

View File

@@ -199,7 +199,7 @@ Type ProtocolConformanceRef::getTypeWitness(Type conformingType,
if (isPack()) {
auto *pack = getPack();
ASSERT(conformingType->isEqual(pack->getType()));
return pack->getAssociatedType(assocType->getDeclaredInterfaceType());
return pack->getTypeWitness(assocType);
}
auto failed = [&]() {