mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A use of "getAs<ClassType>()" when trying to wire up the overrides of an imported Objective-C initializer meant that imported Objective-C generic classes didn't get their overrides set properly. This could lead to redundant initializers; use a proper accessor, since we only need the ClassDecl anyway. Fixes SR-8142 / rdar://problem/41591677.
11 lines
274 B
Objective-C
11 lines
274 B
Objective-C
@import Foundation;
|
|
|
|
@interface MyIntermediateClass : NSObject
|
|
- (nonnull instancetype)initWithDouble:(double)value NS_DESIGNATED_INITIALIZER;
|
|
@end
|
|
|
|
@interface MyGenericClass<__covariant T> : MyIntermediateClass
|
|
- (nonnull instancetype)initWithValue:(nonnull T)value;
|
|
@end
|
|
|