I notice that you can "declare" a variable in this way:
@interface A {
NSString *instanceVariable;
}
@property (nonatomic, retain) NSString *instanceVariable;
@end
This has the same effect as just:
@interface A {
}
@property (nonatomic, retain) NSString *instanceVariable;
@end
Why does the compiler not complain in such situations?
source
share