1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// rdar://7629420 3 4@interface Foo 5@property (readonly) char foo; 6@property (readwrite) char bar; // expected-note {{property declared here}} 7@end 8 9@interface Foo () 10@property (readwrite) char foo; // expected-note 2 {{property declared here}} 11@property (readwrite) char NewProperty; // expected-note 2 {{property declared here}} 12@property (readwrite) char bar; // expected-error{{illegal redeclaration of 'readwrite' property in class extension 'Foo' (perhaps you intended this to be a 'readwrite' redeclaration of a 'readonly' public property?)}} 13@end 14 15@interface Foo () 16@property (readwrite) char foo; // expected-error {{property has a previous declaration}} 17@property (readwrite) char NewProperty; // expected-error {{property has a previous declaration}} 18@end 19 20@interface Foo () 21@property (readonly) char foo; // expected-error {{property has a previous declaration}} 22@property (readwrite) char NewProperty; // expected-error {{property has a previous declaration}} 23@end 24 25