Created
July 22, 2013 21:32
-
-
Save kylesluder/6057905 to your computer and use it in GitHub Desktop.
This file contains 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
// RUN: %clang -fsyntax-only %s 2>&1 | FileCheck %s | |
#import <Foundation/NSObject.h> | |
@protocol FooDelegate; | |
@interface Foo : NSObject | |
@property (weak) id<FooDelegate> delegate; | |
@end | |
@protocol FooDelegate <NSObject> | |
- (void)doSomething; | |
@end | |
@protocol BarDelegate; | |
@interface Bar : Foo | |
@property (weak) id<BarDelegate> delegate; | |
@end | |
@protocol BarDelegate <FooDelegate> | |
- (void)anotherMethod; | |
@end | |
// CHECK-NOT: warning: property type 'id<BarDelegate>' is incompatible with type 'id<FooDelegate>' inherited from 'Foo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment