File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1560,7 +1560,7 @@ class ReferencedTypeFinder : private TypeVisitor<ReferencedTypeFinder> {
1560
1560
Callback (*this , nominal->getDecl ());
1561
1561
}
1562
1562
1563
- void visitMetatypeType (MetatypeType *metatype) {
1563
+ void visitAnyMetatypeType (AnyMetatypeType *metatype) {
1564
1564
visit (metatype->getInstanceType ());
1565
1565
}
1566
1566
Original file line number Diff line number Diff line change @@ -328,6 +328,18 @@ class MyObject : NSObject {}
328
328
// CHECK-NEXT: @end
329
329
@objc protocol MyProtocol : NSObjectProtocol { }
330
330
331
+ // CHECK-LABEL: @protocol MyProtocolMetaOnly;
332
+ // CHECK-LABEL: @interface MyProtocolMetaCheck
333
+ // CHECK-NEXT: - (void)test:(Class <MyProtocolMetaOnly> _Nullable)x;
334
+ // CHECK-NEXT: init
335
+ // CHECK-NEXT: @end
336
+ @objc class MyProtocolMetaCheck {
337
+ func test( _ x: MyProtocolMetaOnly . Type ? ) { }
338
+ }
339
+ // CHECK-LABEL: @protocol MyProtocolMetaOnly
340
+ // CHECK-NEXT: @end
341
+ @objc protocol MyProtocolMetaOnly { }
342
+
331
343
// CHECK-LABEL: @interface Nested
332
344
// CHECK-NEXT: init
333
345
// CHECK-NEXT: @end
Original file line number Diff line number Diff line change 12
12
13
13
import Foundation
14
14
import AppKit
15
+ import objc_generics
15
16
16
17
// CHECK-NOT: AppKit
17
18
@@ -83,6 +84,13 @@ extension CGColor {
83
84
func anyOldMethod( ) { }
84
85
}
85
86
87
+ // CHECK-LABEL: @interface GenericClass (SWIFT_EXTENSION(extensions))
88
+ // CHECK-NEXT: - (void)bar;
89
+ // CHECK-NEXT: @end
90
+ extension GenericClass {
91
+ func bar( ) { }
92
+ }
93
+
86
94
// NEGATIVE-NOT: NotObjC
87
95
class NotObjC { }
88
96
extension NotObjC { }
You can’t perform that action at this time.
0 commit comments