llvm-project/clang/test/PCH/objc_methods.h
Douglas Gregor bab8a96f2f Implement the Objective-C 'instancetype' type, which is an alias of
'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
2011-09-08 01:46:34 +00:00

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;