Clang ignoring type mismatch assigning block to object type
Clang ignoring type mismatch assigning block to object type
- Subject: Clang ignoring type mismatch assigning block to object type
- From: Jens Alfke <email@hidden>
- Date: Sun, 27 Apr 2014 10:32:51 -0700
I just noticed that Clang (in Xcode 5.1.1) isn’t type-checking assignments where the RHS is a block type and the LHS is an Obj-C object type:
void (^aBlock)() = nil;
NSArray* anArray = aBlock; // should be an error, but the compiler allows it
The opposite direction is correctly type-checked, though, and so is the case where RHS and LHS are different block types.
Known bug, or should I file a bug report?
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden