mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[FixCode] Don't add .dynamicType
Adding .dynamicType interacts poorly with the swift migrator by invalidating some inits with type errors. rdar://problem/26642062
This commit is contained in:
@@ -580,6 +580,10 @@ private:
|
||||
Info.ID == diag::invalid_ibinspectable.ID ||
|
||||
Info.ID == diag::invalid_ibaction_decl.ID)
|
||||
return false;
|
||||
// Adding .dynamicType interacts poorly with the swift migrator by
|
||||
// invalidating some inits with type errors.
|
||||
if (Info.ID == diag::init_not_instance_member.ID)
|
||||
return false;
|
||||
|
||||
if (Kind == DiagnosticKind::Error)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user