1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 @property (readonly, copy) id foos;
12 @interface Baz <Foo> {
17 @property (readwrite, copy) id foos;
21 @property (readwrite, copy) id foos;
34 @property (readonly) NSRect foo; // expected-note {{property declared here}}
35 @property (readonly, strong) NSString *bar; // expected-note {{property declared here}}
39 @property (readwrite) NSString *foo; // expected-error {{type of property 'NSString *' in class extension does not match property type in primary class}}
40 @property (readwrite, strong) NSRect bar; // expected-error {{type of property 'NSRect' in class extension does not match property type in primary class}}
45 @interface STAdKitContext
46 @property (nonatomic, readonly, assign) struct evhttp_request *httpRequest;
47 @property (nonatomic, readonly, assign) struct S *httpRequest2;
48 @property (nonatomic, readonly, assign) struct S1 *httpRequest3;
49 @property (nonatomic, readonly, assign) struct S2 *httpRequest4;
52 struct evhttp_request;
55 @interface STAdKitContext()
56 @property (nonatomic, readwrite, assign) struct evhttp_request *httpRequest;
57 @property (nonatomic, readwrite, assign) struct S *httpRequest2;
58 @property (nonatomic, readwrite, assign) struct S1 *httpRequest3;
59 @property (nonatomic, readwrite, assign) struct S2 *httpRequest4;
62 @protocol ADCameraJSO_Bindings
63 @property (nonatomic, readonly) NSString *currentPictureURI;
66 @interface ADCameraJSO
69 @interface ADCameraJSO() <ADCameraJSO_Bindings>
70 @property (nonatomic, copy) NSString *currentPictureURI;