File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,10 @@ class JSONFixitWriter : public DiagnosticConsumer {
635
635
Info.ID == diag::selector_construction_suggest.ID ||
636
636
Info.ID == diag::selector_literal_deprecated_suggest.ID ||
637
637
Info.ID == diag::attr_noescape_deprecated.ID ||
638
- Info.ID == diag::attr_autoclosure_escaping_deprecated.ID )
638
+ Info.ID == diag::attr_autoclosure_escaping_deprecated.ID ||
639
+ Info.ID == diag::deprecated_protocol_composition.ID ||
640
+ Info.ID == diag::deprecated_protocol_composition_single.ID ||
641
+ Info.ID == diag::deprecated_any_composition.ID )
639
642
return true ;
640
643
641
644
return false ;
Original file line number Diff line number Diff line change @@ -236,3 +236,9 @@ enum E {
236
236
case abc
237
237
}
238
238
func testEnumRename( ) { _ = E . Abc }
239
+
240
+ func testProtocolCompositionSyntax( ) {
241
+ var _: protocol < >
242
+ var _: protocol < Prot1 >
243
+ var _: protocol < Prot1 , Prot2 >
244
+ }
Original file line number Diff line number Diff line change @@ -239,3 +239,9 @@ enum E {
239
239
case abc
240
240
}
241
241
func testEnumRename() { _ = E.Abc }
242
+
243
+ func testProtocolCompositionSyntax() {
244
+ var _: Any
245
+ var _: Prot1
246
+ var _: Prot1 & Prot2
247
+ }
You can’t perform that action at this time.
0 commit comments