Change text of diagnostics on user request.

radar 7948654.

llvm-svn: 110857
This commit is contained in:
Fariborz Jahanian 2010-08-11 21:22:15 +00:00
parent 1675ee7a02
commit 0bce17e572
2 changed files with 4 additions and 4 deletions

View File

@ -2234,7 +2234,7 @@ def ext_integer_complement_complex : Extension<
def error_nosetter_property_assignment : Error<
"setter method is needed to assign to object using property" " assignment syntax">;
def error_no_subobject_property_setting : Error<
"expression is not assignable using property assignment syntax">;
"expression is not assignable">;
def ext_freestanding_complex : Extension<
"complex numbers are an extension in a freestanding C99 implementation">;

View File

@ -15,8 +15,8 @@ typedef struct NSSize {
void foo() {
Foo *f;
f.size.width = 2.2; // expected-error {{expression is not assignable using property assignment syntax}}
f.size.inner.dim = 200; // expected-error {{expression is not assignable using property assignment syntax}}
f.size.width = 2.2; // expected-error {{expression is not assignable}}
f.size.inner.dim = 200; // expected-error {{expression is not assignable}}
}
// radar 7628953
@ -28,7 +28,7 @@ void foo() {
@implementation Gorf
- (void)MyView_sharedInit {
self.size.width = 2.2; // expected-error {{expression is not assignable using property assignment syntax}}
self.size.width = 2.2; // expected-error {{expression is not assignable}}
}
- (NSSize)size {}
@end