Very cool! But...

On Jun 10, 2011, at 18:09, Douglas Gregor wrote:
> +  NSArray *arr = [[NSMutableArray alloc] init];
> +  NSMutableArray *marr = [arr retain]; // expected-warning{{incompatible 
> pointer types initializing 'NSMutableArray *' with an expression of type 
> 'NSArray *'}}
> +  marr = [arr retain]; // expected-warning{{incompatible pointer types 
> assigning to 'NSArray *' from 'NSMutableArray *'}}

Isn't that last message backwards?

Also, would this be a good test to add?

  arr = [marr retain]; // no-warning

Jordy


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to