Files
swift-mirror/test/decl/ext/Inputs/extension-generic-objc-protocol.h
Joe Groff 7cf6b75eb7 Sema: Relax restriction on @objc conformances for lightweight generics.
It's valid to extend an ObjC lightweight generic class to conform to an ObjC protocol. Fixes rdar://problem/39550290.
2018-04-19 20:32:19 -07:00

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