mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSFix] Add a fix to detect incorrect argument to subscript key path index
This commit is contained in:
@@ -12417,7 +12417,7 @@ ConstraintSystem::simplifyKeyPathApplicationConstraint(
|
||||
}
|
||||
if (!keyPathTy->isTypeVariableOrMember())
|
||||
return SolutionKind::Error;
|
||||
|
||||
|
||||
return unsolved();
|
||||
}
|
||||
|
||||
@@ -14900,7 +14900,8 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
|
||||
case FixKind::AllowAssociatedValueMismatch:
|
||||
case FixKind::GenericArgumentsMismatch:
|
||||
case FixKind::AllowConcreteTypeSpecialization:
|
||||
case FixKind::IgnoreGenericSpecializationArityMismatch: {
|
||||
case FixKind::IgnoreGenericSpecializationArityMismatch:
|
||||
case FixKind::IgnoreKeyPathSubscriptIndexMismatch: {
|
||||
return recordFix(fix) ? SolutionKind::Error : SolutionKind::Solved;
|
||||
}
|
||||
case FixKind::IgnoreThrownErrorMismatch: {
|
||||
|
||||
Reference in New Issue
Block a user