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 {
613
613
// invalidating some inits with type errors.
614
614
if (Info.ID == diag::init_not_instance_member.ID )
615
615
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 ;
616
620
617
621
if (Kind == DiagnosticKind::Error)
618
622
return true ;
Original file line number Diff line number Diff line change @@ -221,3 +221,8 @@ protocol Prot2 {
221
221
}
222
222
class Cls1 : Prot1 { }
223
223
func 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 {
224
224
}
225
225
class Cls1 : Prot1 {}
226
226
func 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