File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -603,6 +603,7 @@ class JSONFixitWriter : public DiagnosticConsumer {
603
603
Info.ID == diag::attr_decl_attr_now_on_type.ID ||
604
604
Info.ID == diag::noescape_parameter.ID ||
605
605
Info.ID == diag::noescape_autoclosure.ID ||
606
+ Info.ID == diag::where_inside_brackets.ID ||
606
607
Info.ID == diag::selector_construction_suggest.ID ||
607
608
Info.ID == diag::selector_literal_deprecated_suggest.ID )
608
609
return true ;
Original file line number Diff line number Diff line change @@ -214,3 +214,10 @@ func fnWithClosure(c: @escaping ()->()) {}
214
214
func testescape( rec: ( ) -> ( ) ) {
215
215
fnWithClosure { rec ( ) }
216
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 @@ -217,3 +217,10 @@ func fnWithClosure(c: @escaping ()->()) {}
217
217
func testescape(rec: @escaping ()->()) {
218
218
fnWithClosure { rec() }
219
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