File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,11 @@ 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::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 )
639
643
return true ;
640
644
641
645
return false ;
Original file line number Diff line number Diff line change @@ -226,3 +226,13 @@ enum E {
226
226
case abc
227
227
}
228
228
func testEnumRename( ) { _ = E . Abc }
229
+
230
+ func testAnyToAnyObject( x: Any ) {
231
+ x. instMeth ( p: 1 )
232
+ }
233
+
234
+ func testProtocolCompositionSyntax( ) {
235
+ var _: protocol < >
236
+ var _: protocol < Prot1 >
237
+ var _: protocol < Prot1 , Prot2 >
238
+ }
Original file line number Diff line number Diff line change @@ -229,3 +229,13 @@ enum E {
229
229
case abc
230
230
}
231
231
func testEnumRename() { _ = E.Abc }
232
+
233
+ func testAnyToAnyObject(x: Any) {
234
+ (x as AnyObject).instMeth(p: 1)
235
+ }
236
+
237
+ func testProtocolCompositionSyntax() {
238
+ var _: Any
239
+ var _: Prot1
240
+ var _: Prot1 & Prot2
241
+ }
You can’t perform that action at this time.
0 commit comments