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 @@ -636,7 +636,10 @@ class JSONFixitWriter : public DiagnosticConsumer {
636
636
Info.ID == diag::selector_literal_deprecated_suggest.ID ||
637
637
Info.ID == diag::attr_noescape_deprecated.ID ||
638
638
Info.ID == diag::attr_autoclosure_escaping_deprecated.ID ||
639
- Info.ID == diag::any_as_anyobject_fixit.ID )
639
+ Info.ID == diag::any_as_anyobject_fixit.ID ||
640
+ Info.ID == diag::deprecated_protocol_composition.ID ||
641
+ Info.ID == diag::deprecated_protocol_composition_single.ID ||
642
+ Info.ID == diag::deprecated_any_composition.ID )
640
643
return true ;
641
644
642
645
return false ;
Original file line number Diff line number Diff line change @@ -240,3 +240,9 @@ func testEnumRename() { _ = E.Abc }
240
240
func testAnyToAnyObject( x: Any ) {
241
241
x. instMeth ( p: 1 )
242
242
}
243
+
244
+ func testProtocolCompositionSyntax( ) {
245
+ var _: protocol < >
246
+ var _: protocol < Prot1 >
247
+ var _: protocol < Prot1 , Prot2 >
248
+ }
Original file line number Diff line number Diff line change @@ -243,3 +243,9 @@ func testEnumRename() { _ = E.Abc }
243
243
func testAnyToAnyObject(x: Any) {
244
244
(x as AnyObject).instMeth(p: 1)
245
245
}
246
+
247
+ func testProtocolCompositionSyntax() {
248
+ var _: Any
249
+ var _: Prot1
250
+ var _: Prot1 & Prot2
251
+ }
You can’t perform that action at this time.
0 commit comments