• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clang ignoring type mismatch assigning block to object type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Clang ignoring type mismatch assigning block to object type (From: Jens Alfke <email@hidden>)

  • Prev by Date: Clang ignoring type mismatch assigning block to object type
  • Next by Date: Re: Clang ignoring type mismatch assigning block to object type
  • Previous by thread: Clang ignoring type mismatch assigning block to object type
  • Next by thread: Re: Clang ignoring type mismatch assigning block to object type
  • Index(es):
    • Date
    • Thread