Files
swift-mirror/test/IRGen/Inputs/objc_generic_protocol_conformance.h
Joe Groff 88ad1160a2 SILGen/IRGen: Lower protocol witness thunks for ObjC lightweight generics as pseudogeneric.
Fixes rdar://problem/28873860, where we would miscompile when lightweight generic classes were extended to conform to Swift protocols because we tried to emit parameters for the class's generic parameters for the witness entry points. Prevent this by lowering the witness into a pseudogeneric function in SILGen, and teaching IRGen to do the right thing for a witness with pseudogeneric parameters.
2016-10-26 13:45:34 -07:00

8 lines
71 B
Objective-C

@import Foundation;
@interface Foo <T> : NSObject
- (void)foo;
@end