mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
It's valid to extend an ObjC lightweight generic class to conform to an ObjC protocol. Fixes rdar://problem/39550290.
20 lines
281 B
Objective-C
20 lines
281 B
Objective-C
@import Foundation;
|
|
|
|
@interface OBJCGeneric<T> : NSObject
|
|
@end
|
|
|
|
@interface OBJCGenericSubclass<T, U>: OBJCGeneric<T>
|
|
@end
|
|
|
|
@interface OBJCNongenericSubclass: OBJCGenericSubclass<id, id>
|
|
@end
|
|
|
|
@protocol OBJCProtocol1
|
|
@end
|
|
|
|
@protocol OBJCProtocol2
|
|
@end
|
|
|
|
@protocol OBJCProtocol3
|
|
@end
|