File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -613,6 +613,10 @@ class JSONFixitWriter : public DiagnosticConsumer {
613613 // invalidating some inits with type errors.
614614 if (Info.ID == diag::init_not_instance_member.ID )
615615 return false ;
616+ // Renaming enum cases interacts poorly with the swift migrator by
617+ // reverting changes made by the mgirator.
618+ if (Info.ID == diag::could_not_find_enum_case.ID )
619+ return false ;
616620
617621 if (Kind == DiagnosticKind::Error)
618622 return true ;
Original file line number Diff line number Diff line change @@ -221,3 +221,8 @@ protocol Prot2 {
221221}
222222class Cls1 : Prot1 { }
223223func testwhere< T: Prot2 where T. Ty == Cls1 > ( _: T ) { }
224+
225+ enum E {
226+ case abc
227+ }
228+ func testEnumRename( ) { _ = E . Abc }
Original file line number Diff line number Diff line change @@ -224,3 +224,8 @@ protocol Prot2 {
224224}
225225class Cls1 : Prot1 {}
226226func testwhere<T: Prot2>(_: T) where T.Ty == Cls1 {}
227+
228+ enum E {
229+ case abc
230+ }
231+ func testEnumRename() { _ = E.Abc }
You can’t perform that action at this time.
0 commit comments