@protocol ProtoDirectFail
@property(nonatomic, direct) int protoProperty; @end
__attribute__((objc_root_class))
@interface Root
@property(nonatomic, direct) int propertyWithNonDirectGetter; - (int)propertyWithNonDirectGetter;
- (int)propertyWithNonDirectGetter2;
- (int)propertyWithNonDirectGetterInParent;
- (int)propertyWithNonDirectGetterInParent2;
@property(nonatomic, readonly, direct) int getDirect_setDynamic; @property(nonatomic, readonly, direct) int getDirect_setDirect; @property(nonatomic, readonly, direct) int getDirect_setDirectMembers;
@property(nonatomic, readonly) int getDynamic_setDirect;
@property(nonatomic, readonly) int getDynamic_setDirectMembers;
@property(nonatomic, readonly) int dynamicProperty;
@property(nonatomic, readonly) int synthDynamicProperty;
@property(nonatomic, readonly, direct) int directProperty; @property(nonatomic, readonly, direct) int synthDirectProperty; @end
__attribute__((objc_direct_members))
@interface
Root()
@property(nonatomic) int propertyWithNonDirectGetter2;
@property(nonatomic, readwrite) int getDirect_setDirectMembers; @property(nonatomic, readwrite) int getDynamic_setDirectMembers; @end
@interface Root ()
@property(nonatomic, readwrite) int getDirect_setDynamic;
@property(nonatomic, readwrite, direct) int getDirect_setDirect;
@property(nonatomic, readwrite, direct) int getDynamic_setDirect; @end
@interface Sub : Root
@property(nonatomic, direct) int propertyWithNonDirectGetterInParent;
- (int)propertyWithNonDirectGetter; - (int)propertyWithNonDirectGetter2; - (int)propertyWithNonDirectGetterInParent; - (int)propertyWithNonDirectGetterInParent2;
@end
__attribute__((objc_direct_members))
@interface Sub ()
@property(nonatomic) int propertyWithNonDirectGetterInParent2; @end
@interface SubWitness : Sub
- (int)setPropertyWithNonDirectGetter:(int)value; - (int)setPropertyWithNonDirectGetter2:(int)value; - (int)setPropertyWithNonDirectGetterInParent:(int)value; - (int)setPropertyWithNonDirectGetterInParent2:(int)value;
- (int)getDirect_setDynamic; - (int)setGetDirect_setDynamic:(int)value;
- (int)getDirect_setDirect; - (int)setGetDirect_setDirect:(int)value; - (int)getDirect_setDirectMembers; - (int)setGetDirect_setDirectMembers:(int)value;
- (int)getDynamic_setDirect;
- (int)setGetDynamic_setDirect:(int)value; - (int)getDynamic_setDirectMembers;
- (int)setGetDynamic_setDirectMembers:(int)value; @end
__attribute__((objc_direct_members))
@implementation Root
- (int)propertyWithNonDirectGetter {
return 42;
}
- (int)propertyWithNonDirectGetter2 {
return 42;
}
- (int)propertyWithNonDirectGetterInParent {
return 42;
}
- (int)propertyWithNonDirectGetterInParent2 {
return 42;
}
- (int)dynamicProperty {
return 42;
}
- (int)directProperty {
return 42;
}
@end
@implementation Sub
- (int)propertyWithNonDirectGetter {
return 42;
}
- (int)propertyWithNonDirectGetter2 {
return 42;
}
- (int)dynamicProperty {
return 42;
}
- (int)synthDynamicProperty {
return 42;
}
- (int)directProperty { return 42;
}
- (int)synthDirectProperty { return 42;
}
@end