File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -583,12 +583,15 @@ class JSONFixitWriter : public DiagnosticConsumer {
583
583
584
584
if (Kind == DiagnosticKind::Error)
585
585
return true ;
586
+
587
+ // Fixits from warnings/notes that should be applied.
586
588
if (Info.ID == diag::forced_downcast_coercion.ID ||
587
589
Info.ID == diag::forced_downcast_noop.ID ||
588
590
Info.ID == diag::variable_never_mutated.ID ||
589
591
Info.ID == diag::function_type_no_parens.ID ||
590
592
Info.ID == diag::convert_let_to_var.ID ||
591
- Info.ID == diag::parameter_extraneous_double_up.ID )
593
+ Info.ID == diag::parameter_extraneous_double_up.ID ||
594
+ Info.ID == diag::attr_decl_attr_now_on_type.ID )
592
595
return true ;
593
596
return false ;
594
597
}
Original file line number Diff line number Diff line change @@ -195,3 +195,5 @@ protocol NonObjCProtocol {}
195
195
}
196
196
197
197
@IBDesignable extension SomeProt { }
198
+
199
+ func attrNowOnType( @noescape foo: ( ) -> ( ) ) { }
Original file line number Diff line number Diff line change @@ -198,3 +198,5 @@ protocol NonObjCProtocol {}
198
198
}
199
199
200
200
@IBDesignable extension SomeProt {}
201
+
202
+ func attrNowOnType(foo: @noescape ()->()) {}
You can’t perform that action at this time.
0 commit comments