[CS] Remove invalid DependentMemberType workaround for tuples

We can produce a hole here now without
regressing diagnostics.
This commit is contained in:
Hamish Knight
2023-05-04 14:36:16 +01:00
parent b305324179
commit 1be25895b8
3 changed files with 1 additions and 24 deletions

View File

@@ -3920,12 +3920,6 @@ struct TypeSimplifier {
auto conformance = CS.DC->getParentModule()->lookupConformance(
lookupBaseType, proto);
if (!conformance) {
// FIXME: This regresses diagnostics if removed, but really the
// handling of a missing conformance should be the same for
// tuples and non-tuples.
if (lookupBaseType->is<TupleType>())
return DependentMemberType::get(lookupBaseType, assocType);
// If the base type doesn't conform to the associatedtype's protocol,
// there will be a missing conformance fix applied in diagnostic mode,
// so the concrete dependent member type is considered a "hole" in