File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
benchmark/utils/ObjectiveCTests Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
23
23
NSArray <NSString *> *bridgedStrings;
24
24
}
25
25
26
- - (id )init ;
26
+ - (instancetype )init NS_DESIGNATED_INITIALIZER ;
27
27
- (void )setUpStringTests : (NSArray <NSString *> *)bridgedStrings ;
28
28
- (void )testFromString : (NSString *) str ;
29
29
- (NSString *)testToString ;
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ - (const unichar *)_fastCharacterContents {
102
102
103
103
@implementation BridgeTester
104
104
105
- - (id )init {
105
+ - (instancetype )init {
106
106
self = [super init ];
107
107
if (!self)
108
108
return self;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ @interface SwiftNativeNSObject : NSObject
39
39
40
40
@implementation SwiftNativeNSObject
41
41
42
- + (id )allocWithZone : (NSZone *)zone {
42
+ + (instancetype )allocWithZone : (NSZone *)zone {
43
43
// Allocate the object with swift_allocObject().
44
44
// Note that this doesn't work if called on SwiftNativeNSObject itself,
45
45
// which is not a Swift class.
@@ -50,7 +50,7 @@ + (id)allocWithZone: (NSZone *)zone {
50
50
return reinterpret_cast <id >(result);
51
51
}
52
52
53
- - (id )initWithCoder : (NSCoder *)coder {
53
+ - (instancetype )initWithCoder : (NSCoder *)coder {
54
54
return [super init ];
55
55
}
56
56
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ SWIFT_RUNTIME_STDLIB_API
62
62
63
63
@implementation __SwiftNativeNS${Class}Base
64
64
65
- - (id )initWithCoder: (NSCoder *)coder {
65
+ - (instancetype )initWithCoder: (NSCoder *)coder {
66
66
return [super init];
67
67
}
68
68
You can’t perform that action at this time.
0 commit comments