blob: 74728e55b9f7cf6e1c06e6442ed579301ee20c03 [file] [log] [blame]
#import <Foundation/NSObject.h>
@interface PropertyInterface : NSObject {
}
@property (readonly) int32_t readOnlyProperty;
@property int32_t readWriteProperty;
@property (class, readonly) int32_t classReadOnlyProperty;
@property (class) int32_t classReadWriteProperty;
@end
@implementation PropertyInterface
static int32_t _classReadWriteProperty = 0;
- (int32_t)readOnlyProperty {
return 7;
}
+ (int32_t)classReadOnlyProperty {
return 42;
}
+ (int32_t)classReadWriteProperty {
return _classReadWriteProperty;
}
+ (void)setClassReadWriteProperty:(int32_t)x {
_classReadWriteProperty = x;
}
@end