Skip to content

Instantly share code, notes, and snippets.

@kylesluder
Created June 4, 2012 23:32
Show Gist options
  • Select an option

  • Save kylesluder/2871490 to your computer and use it in GitHub Desktop.

Select an option

Save kylesluder/2871490 to your computer and use it in GitHub Desktop.
Property redeclaration error when widened in multiple extensions
// clang -c -o /dev/null prop.m
#import <Foundation/NSObject.h>
@interface Obj : NSObject /*Public*/
@end
@interface Obj ( /*Internal*/ )
@property (readonly, retain, nonatomic) NSObject *prop;
@end
@interface Obj ( /*Private*/ )
@property (readwrite, retain, nonatomic) NSObject *prop;
@end
@implementation Obj
@synthesize prop;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment