mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Remove invalid DependentMemberType workaround for tuples
We can produce a hole here now without regressing diagnostics.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user