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: Keary Suska <email@hidden>
- Date: Sun, 27 Apr 2014 16:12:57 -0600
On Apr 27, 2014, at 11:32 AM, Jens Alfke 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;
Does it flag it when this assignment is other than nil? Just curious...
Though I agree that there should be a warning about this, as it would almost never be correct...
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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