mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[CSSimplify] Fix handling of holes by OptionalObject constraint"
This reverts commit 8b5e3848a1.
This commit is contained in:
@@ -9179,8 +9179,8 @@ ConstraintSystem::simplifyOptionalObjectConstraint(
|
||||
}
|
||||
|
||||
if (optTy->isPlaceholder()) {
|
||||
// object type should be simplified because it could be already bound.
|
||||
recordAnyTypeVarAsPotentialHole(simplifyType(second));
|
||||
if (auto *typeVar = second->getAs<TypeVariableType>())
|
||||
recordPotentialHole(typeVar);
|
||||
return SolutionKind::Solved;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user