mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Bind holes to UnresolvedType instead of Any.
This commit is contained in:
@@ -740,7 +740,7 @@ ConstraintSystem::getPotentialBindings(TypeVariableType *typeVar) const {
|
||||
if (shouldAttemptFixes() && result.Bindings.empty() &&
|
||||
(isHole(typeVar) || result.isGenericParameter())) {
|
||||
result.IsHole = true;
|
||||
result.addPotentialBinding({getASTContext().TheAnyType,
|
||||
result.addPotentialBinding({getASTContext().TheUnresolvedType,
|
||||
AllowedBindingKind::Exact, ConstraintKind::Defaultable, nullptr,
|
||||
typeVar->getImpl().getLocator()});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user