We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1514c commit 1828c7eCopy full SHA for 1828c7e
lib/AST/TypeSubstitution.cpp
@@ -443,7 +443,10 @@ Type TypeSubstituter::transformDependentMemberType(DependentMemberType *dependen
443
IFS.lookupConformance(origBase->getCanonicalType(), substBase,
444
proto, level);
445
446
- return conformance.getTypeWitness(substBase, assocType, IFS.getOptions());
+ auto result = conformance.getTypeWitness(substBase, assocType, IFS.getOptions());
447
+ if (result->is<ErrorType>())
448
+ return DependentMemberType::get(ErrorType::get(substBase), assocType);
449
+ return result;
450
}
451
452
SubstitutionMap TypeSubstituter::transformSubstitutionMap(SubstitutionMap subs) {
0 commit comments