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 @@ -15391,14 +15391,21 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
15391
15391
case FixKind::MacroMissingPound:
15392
15392
case FixKind::AllowGlobalActorMismatch:
15393
15393
case FixKind::AllowAssociatedValueMismatch:
15394
- case FixKind::GenericArgumentsMismatch:
15395
15394
case FixKind::AllowConcreteTypeSpecialization:
15396
15395
case FixKind::AllowFunctionSpecialization:
15397
15396
case FixKind::IgnoreGenericSpecializationArityMismatch:
15398
15397
case FixKind::IgnoreKeyPathSubscriptIndexMismatch:
15399
15398
case FixKind::AllowMemberRefOnExistential: {
15400
15399
return recordFix(fix) ? SolutionKind::Error : SolutionKind::Solved;
15401
15400
}
15401
+
15402
+ case FixKind::GenericArgumentsMismatch: {
15403
+ unsigned impact = 1;
15404
+ if (type1->isMarkerExistential() || type2->isMarkerExistential())
15405
+ ++impact;
15406
+ return recordFix(fix, impact) ? SolutionKind::Error : SolutionKind::Solved;
15407
+ }
15408
+
15402
15409
case FixKind::IgnoreThrownErrorMismatch: {
15403
15410
return recordFix(fix, 2) ? SolutionKind::Error : SolutionKind::Solved;
15404
15411
}
You can’t perform that action at this time.
0 commit comments