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:
Fariborz Jahanian 2013-10-07 20:41:53 +00:00
parent b8b41d3ea4
commit 985da6c936
2 changed files with 1 additions and 2 deletions

View File

@ -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") ||

View File

@ -79,7 +79,7 @@ typedef enum NSURLBookmarkResolutionOptions {
@end
@interface NSNotificationCenter
+ (instancetype) defaultCenter;
+ (id) defaultCenter;
@end
@interface UIApplication