mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
8 lines
71 B
Objective-C
8 lines
71 B
Objective-C
@import Foundation;
|
|
|
|
@interface Foo <T> : NSObject
|
|
|
|
- (void)foo;
|
|
|
|
@end
|