'id' that can be used (only!) via a contextual keyword as the result type of an Objective-C message send. 'instancetype' then gives the method a related result type, which we have already been inferring for a variety of methods (new, alloc, init, self, retain). Addresses <rdar://problem/9267640>. llvm-svn: 139275
12 lines
189 B
Objective-C
12 lines
189 B
Objective-C
/* For use with the methods.m test */
|
|
|
|
@interface TestPCH
|
|
+ alloc;
|
|
- (instancetype)instMethod;
|
|
@end
|
|
|
|
@class TestForwardClassDecl;
|
|
|
|
// FIXME: @compatibility_alias AliasForTestPCH TestPCH;
|
|
|