File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15326,14 +15326,21 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
15326
15326
case FixKind::MacroMissingPound:
15327
15327
case FixKind::AllowGlobalActorMismatch:
15328
15328
case FixKind::AllowAssociatedValueMismatch:
15329
- case FixKind::GenericArgumentsMismatch:
15330
15329
case FixKind::AllowConcreteTypeSpecialization:
15331
15330
case FixKind::AllowFunctionSpecialization:
15332
15331
case FixKind::IgnoreGenericSpecializationArityMismatch:
15333
15332
case FixKind::IgnoreKeyPathSubscriptIndexMismatch:
15334
15333
case FixKind::AllowMemberRefOnExistential: {
15335
15334
return recordFix(fix) ? SolutionKind::Error : SolutionKind::Solved;
15336
15335
}
15336
+
15337
+ case FixKind::GenericArgumentsMismatch: {
15338
+ unsigned impact = 1;
15339
+ if (type1->isMarkerExistential() || type2->isMarkerExistential())
15340
+ ++impact;
15341
+ return recordFix(fix, impact) ? SolutionKind::Error : SolutionKind::Solved;
15342
+ }
15343
+
15337
15344
case FixKind::IgnoreThrownErrorMismatch: {
15338
15345
return recordFix(fix, 2) ? SolutionKind::Error : SolutionKind::Solved;
15339
15346
}
You can’t perform that action at this time.
0 commit comments