@@ -5920,7 +5920,7 @@ bool ConstraintSystem::repairFailures(
5920
5920
5921
5921
if (repairViaOptionalUnwrap(*this, lhs, rhs, matchKind, conversionsOrFixes,
5922
5922
locator))
5923
- break ;
5923
+ return true ;
5924
5924
5925
5925
// Let's wait until both sides are of the same optionality before
5926
5926
// attempting `.rawValue` fix.
@@ -5967,7 +5967,7 @@ bool ConstraintSystem::repairFailures(
5967
5967
5968
5968
if (repairViaOptionalUnwrap(*this, lhs, rhs, matchKind,
5969
5969
conversionsOrFixes, locator))
5970
- break ;
5970
+ return true ;
5971
5971
5972
5972
conversionsOrFixes.push_back(
5973
5973
IgnoreContextualType::create(*this, lhs, rhs, locator));
@@ -6193,7 +6193,7 @@ bool ConstraintSystem::repairFailures(
6193
6193
case ConstraintLocator::Condition: {
6194
6194
if (repairViaOptionalUnwrap(*this, lhs, rhs, matchKind, conversionsOrFixes,
6195
6195
locator))
6196
- break ;
6196
+ return true ;
6197
6197
6198
6198
conversionsOrFixes.push_back(IgnoreContextualType::create(
6199
6199
*this, lhs, rhs, getConstraintLocator(locator)));
@@ -6218,7 +6218,7 @@ bool ConstraintSystem::repairFailures(
6218
6218
6219
6219
if (repairViaOptionalUnwrap(*this, lhs, rhs, matchKind, conversionsOrFixes,
6220
6220
locator))
6221
- break ;
6221
+ return true ;
6222
6222
6223
6223
if (repairByTreatingRValueAsLValue(lhs, rhs))
6224
6224
break;
0 commit comments