Trying to improve on a diagnostics for properties.

llvm-svn: 102187
This commit is contained in:
Fariborz Jahanian 2010-04-23 17:22:07 +00:00
parent 26a0f1cff9
commit e459686aac
2 changed files with 5 additions and 5 deletions

View File

@ -323,8 +323,8 @@ def warn_atomic_property_rule : Warning<
"writable atomic property %0 cannot pair a synthesized setter/getter "
"with a user defined setter/getter">;
def err_use_continuation_class : Error<
"property declaration in continuation class of %0 is to change a 'readonly' "
"property to 'readwrite'">;
"illegal declaration of property in continuation class %0"
" - attribute must be readwrite, while its primary must be readonly">;
def err_continuation_class : Error<"continuation class has no primary class">;
def err_property_type : Error<"property cannot have array or function type %0">;
def error_missing_property_context : Error<

View File

@ -12,7 +12,7 @@
@interface ReadOnly ()
@property(readwrite, copy) id object; // expected-warning {{property attribute in continuation class does not match the primary class}}
@property(readonly) id object1; // expected-error {{property declaration in continuation class of 'ReadOnly' is to change a 'readonly' property to 'readwrite'}}
@property(readonly) id object1; // expected-error {{illegal declaration of property in continuation class 'ReadOnly' - attribute must be}}
@property (readwrite, assign) int indentLevel; // OK. assign the the default in any case.
@end
@ -31,8 +31,8 @@
@end
@interface Bar ()
@property (copy) id foo; // expected-error {{property declaration in continuation class of 'Bar' is to change a 'readonly' property to 'readwrite'}}
@property (copy) id fee; // expected-error {{property declaration in continuation class of 'Bar' is to change a 'readonly' property to 'readwrite'}}
@property (copy) id foo; // expected-error {{illegal declaration of property in continuation class 'Bar' - attribute must be}}
@property (copy) id fee; // expected-error {{illegal declaration of property in continuation class 'Bar' - attribute must be}}
@end
@implementation Bar