File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,10 @@ class JSONFixitWriter : public DiagnosticConsumer {
580
580
Info.ID == diag::invalid_ibinspectable.ID ||
581
581
Info.ID == diag::invalid_ibaction_decl.ID )
582
582
return false ;
583
+ // Adding .dynamicType interacts poorly with the swift migrator by
584
+ // invalidating some inits with type errors.
585
+ if (Info.ID == diag::init_not_instance_member.ID )
586
+ return false ;
583
587
584
588
if (Kind == DiagnosticKind::Error)
585
589
return true ;
Original file line number Diff line number Diff line change @@ -197,3 +197,10 @@ protocol NonObjCProtocol {}
197
197
@IBDesignable extension SomeProt { }
198
198
199
199
func attrNowOnType( @noescape foo: ( ) -> ( ) ) { }
200
+
201
+ class InitDynType {
202
+ init ( ) { }
203
+ func notInit( ) {
204
+ self . init ( )
205
+ }
206
+ }
Original file line number Diff line number Diff line change @@ -200,3 +200,10 @@ protocol NonObjCProtocol {}
200
200
@IBDesignable extension SomeProt {}
201
201
202
202
func attrNowOnType(foo: @noescape ()->()) {}
203
+
204
+ class InitDynType {
205
+ init() {}
206
+ func notInit() {
207
+ self.init()
208
+ }
209
+ }
You can’t perform that action at this time.
0 commit comments