mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSFix] Add a new fix to diagnose invalid static member refs on protocol metatype
This commit is contained in:
@@ -10525,7 +10525,8 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
|
||||
case FixKind::SpecifyBaseTypeForOptionalUnresolvedMember:
|
||||
case FixKind::AllowCheckedCastCoercibleOptionalType:
|
||||
case FixKind::AllowUnsupportedRuntimeCheckedCast:
|
||||
case FixKind::AllowAlwaysSucceedCheckedCast: {
|
||||
case FixKind::AllowAlwaysSucceedCheckedCast:
|
||||
case FixKind::AllowInvalidStaticMemberRefOnProtocolMetatype: {
|
||||
return recordFix(fix) ? SolutionKind::Error : SolutionKind::Solved;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user