Re: Clang ignoring type mismatch assigning block to object type
Re: Clang ignoring type mismatch assigning block to object type
- Subject: Re: Clang ignoring type mismatch assigning block to object type
- From: Chris Lattner <email@hidden>
- Date: Sun, 27 Apr 2014 14:19:00 -0700
On Apr 27, 2014, at 10:32 AM, Jens Alfke <email@hidden> wrote:
> 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?
Not known to me at least, please file!
-Chris
_______________________________________________
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