forked from OSchip/llvm-project
ObjectiveC migrator: A typical implementation of
'default' methods in Foundation does not infer 'instancetype' for methods' result type. // rdar://15145218 llvm-svn: 192129
This commit is contained in:
parent
b8b41d3ea4
commit
985da6c936
|
@ -465,7 +465,6 @@ ObjCInstanceTypeFamily Selector::getInstTypeMethodFamily(Selector sel) {
|
|||
break;
|
||||
case 'd':
|
||||
if (startsWithWord(name, "dictionary")) return OIT_Dictionary;
|
||||
if (startsWithWord(name, "default")) return OIT_Singleton;
|
||||
break;
|
||||
case 's':
|
||||
if (startsWithWord(name, "shared") ||
|
||||
|
|
|
@ -79,7 +79,7 @@ typedef enum NSURLBookmarkResolutionOptions {
|
|||
@end
|
||||
|
||||
@interface NSNotificationCenter
|
||||
+ (instancetype) defaultCenter;
|
||||
+ (id) defaultCenter;
|
||||
@end
|
||||
|
||||
@interface UIApplication
|
||||
|
|
Loading…
Reference in New Issue