File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -601,6 +601,9 @@ class JSONFixitWriter : public DiagnosticConsumer {
601
601
Info.ID == diag::convert_let_to_var.ID ||
602
602
Info.ID == diag::parameter_extraneous_double_up.ID ||
603
603
Info.ID == diag::attr_decl_attr_now_on_type.ID ||
604
+ Info.ID == diag::noescape_parameter.ID ||
605
+ Info.ID == diag::noescape_autoclosure.ID ||
606
+ Info.ID == diag::where_inside_brackets.ID ||
604
607
Info.ID == diag::selector_construction_suggest.ID ||
605
608
Info.ID == diag::selector_literal_deprecated_suggest.ID )
606
609
return true ;
Original file line number Diff line number Diff line change @@ -209,3 +209,15 @@ class NoSemi {
209
209
enum Bar { case bar }
210
210
var foo : . Bar = . bar
211
211
}
212
+
213
+ func fnWithClosure( c: @escaping ( ) -> ( ) ) { }
214
+ func testescape( rec: ( ) -> ( ) ) {
215
+ fnWithClosure { rec ( ) }
216
+ }
217
+
218
+ protocol Prot1 { }
219
+ protocol Prot2 {
220
+ associatedtype Ty = Prot1
221
+ }
222
+ class Cls1 : Prot1 { }
223
+ func testwhere< T: Prot2 where T. Ty == Cls1 > ( _: T ) { }
Original file line number Diff line number Diff line change @@ -212,3 +212,15 @@ class NoSemi {
212
212
enum Bar { case bar }
213
213
var foo: .Bar = .bar
214
214
}
215
+
216
+ func fnWithClosure(c: @escaping ()->()) {}
217
+ func testescape(rec: @escaping ()->()) {
218
+ fnWithClosure { rec() }
219
+ }
220
+
221
+ protocol Prot1 {}
222
+ protocol Prot2 {
223
+ associatedtype Ty = Prot1
224
+ }
225
+ class Cls1 : Prot1 {}
226
+ func testwhere<T: Prot2>(_: T) where T.Ty == Cls1 {}
You can’t perform that action at this time.
0 commit comments