File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,8 @@ 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 )
639
640
return true ;
640
641
641
642
return false ;
Original file line number Diff line number Diff line change @@ -236,3 +236,7 @@ enum E {
236
236
case abc
237
237
}
238
238
func testEnumRename( ) { _ = E . Abc }
239
+
240
+ func testAnyToAnyObject( x: Any ) {
241
+ x. instMeth ( p: 1 )
242
+ }
Original file line number Diff line number Diff line change @@ -239,3 +239,7 @@ enum E {
239
239
case abc
240
240
}
241
241
func testEnumRename() { _ = E.Abc }
242
+
243
+ func testAnyToAnyObject(x: Any) {
244
+ (x as AnyObject).instMeth(p: 1)
245
+ }
You can’t perform that action at this time.
0 commit comments