receiverIsId);
if (Method)
if (ObjCMethodDecl *BestMethod =
- SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod()))
+ SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod()))
Method = BestMethod;
} else if (ReceiverType->isObjCClassType() ||
ReceiverType->isObjCQualifiedClassType()) {
<< Sel << SourceRange(LBracLoc, RBracLoc);
}
}
+ if (Method)
+ if (ObjCMethodDecl *BestMethod =
+ SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod()))
+ Method = BestMethod;
}
}
}
// rdar://16808765
-@interface NSObject @end
+@interface NSObject
++ (void)clsMethod:(int*)arg;
+@end
@class NSDictionary;
@class NSError;
@required
- (void)getDonuts:(void (^)(NSDictionary *))replyBlock;
- (void)getCake:(float*)arg, ...;
++ (void)clsMethod:(float*)arg;
@end
@implementation Foo
[(id)0 getCake: &g, 1,3.14];
}
@end
+
+void func( Class c, float g ) {
+ [c clsMethod: &g];
+}