Created
June 4, 2012 23:32
-
-
Save kylesluder/2871490 to your computer and use it in GitHub Desktop.
Property redeclaration error when widened in multiple extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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