You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
437 B
26 lines
437 B
/*
|
|
* Copyright (c) 2014 - Facebook.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#import "BlockVar.h"
|
|
|
|
@implementation BlockVar
|
|
|
|
+ (int)test {
|
|
return 5;
|
|
}
|
|
|
|
+ (int)navigateToURLInBackground:(NSURL *)destination
|
|
resolver:(id)resolver {
|
|
|
|
int (^addBlock)(int a, int b) = ^(int a, int b){
|
|
NSError *error = nil;
|
|
int res = [self test];
|
|
return a + b + res;
|
|
};
|
|
return addBlock(1, 2);
|
|
}
|
|
|
|
@end
|