mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[fixit] Apply the 'forced_downcast_coercion' warning automatically.
This can show up when upgrading due to ObjC generics changes. Swift SVN r28454
This commit is contained in:
@@ -410,7 +410,8 @@ private:
|
||||
bool shouldFix(DiagnosticKind Kind, const DiagnosticInfo &Info) {
|
||||
if (Kind == DiagnosticKind::Error)
|
||||
return true;
|
||||
if (Info.ID == diag::parameter_pound_double_up.ID)
|
||||
if (Info.ID == diag::parameter_pound_double_up.ID ||
|
||||
Info.ID == diag::forced_downcast_coercion.ID)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user