On Wed, Nov 26, 2008 at 12:33 PM, Fariborz Jahanian <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED](readonly, assign) id object;
> [EMAIL PROTECTED](readwrite, assign) id object1;
> [EMAIL PROTECTED]
> +
> [EMAIL PROTECTED] ReadOnly ()
> [EMAIL PROTECTED](readwrite, copy) id object;  // expected-warning {{property 
> attribute in continuation class does not match the primary class}}
> [EMAIL PROTECTED](readonly) id object1; // expected-error {{use contination 
> class to override 'readonly' property with 'readwrite'}}

I find the wording of this error message confusing (is it a command or
a comment), or perhaps the error message isn't right?

I'm not sure I understand this corner of Objective-C, but isn't the
problem that the continuation class is overriding a readwrite property
with a readonly one? If I am understanding correctly, I think that the
error should be more like the warn_readonly_property diagnostic we
already have, for example:
"continuation class cannot restrict inherited 'readwrite' property"

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

Reply via email to