Skip to content

Instantly share code, notes, and snippets.

@jorbsd
Created January 29, 2010 19:28
Show Gist options
  • Save jorbsd/290011 to your computer and use it in GitHub Desktop.
Save jorbsd/290011 to your computer and use it in GitHub Desktop.
23 jordan@thetourist ~/Tests/block_typecast_testcase/output/test2.m > cat _opt_llvm_bin_clang.txt
test2.m:76:76: error: incompatible block pointer types sending 'int (^)(id<JBBNodeProtocol>, id<JBBNodeProtocol>)', expected 'JBBComparisonBlock' (aka 'NSComparisonResult (^)(id, id)')
JBBPriorityQueue *localQueue = [[JBBPriorityQueue alloc] initWithBlock:^(id <JBBNodeProtocol> lhs, id <JBBNodeProtocol> rhs) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 diagnostic generated.
23 jordan@thetourist ~/Tests/block_typecast_testcase/output/test2.m > cat _Developer_usr_bin_gcc-4.2.txt
test2.m: In function ‘main’:
test2.m:84: error: incompatible block pointer types initializing ‘int (^)(struct objc_object *, struct objc_object *)’, expected ‘JBBComparisonBlock’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment