// with anonymous category's readwrite property attribute!
unsigned PIkind = PIDecl->getPropertyAttributes();
if (isReadWrite && (PIkind & ObjCPropertyDecl::OBJC_PR_readonly)) {
- if ((Attributes & ObjCPropertyDecl::OBJC_PR_retain) !=
- (PIkind & ObjCPropertyDecl::OBJC_PR_retain) ||
- (Attributes & ObjCPropertyDecl::OBJC_PR_copy) !=
- (PIkind & ObjCPropertyDecl::OBJC_PR_copy) ||
- (Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) !=
+ if ((Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) !=
(PIkind & ObjCPropertyDecl::OBJC_PR_nonatomic))
Diag(AtLoc, diag::warn_property_attr_mismatch);
PIDecl->makeitReadWriteAttribute();
@end
@interface ReadOnly ()
-@property(readwrite, copy) id object; // expected-warning {{property attribute in continuation class does not match the primary class}}
+@property(readwrite, copy) id object;
@property(readonly) id object1; // expected-error {{attribute of property in continuation class of 'ReadOnly' can only be 'readwrite'}}
@end