blob: 6ab07b8f3b801f57fb4a9f4f20132011244a5887 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
// rdar://9740328
@protocol P1;
@interface NSObject
@end
@interface A : NSObject
@property (assign) NSObject<P1> *prop;
@end
@protocol P2 <P1>
@end
@interface B : A
@property (assign) NSObject<P2> *prop;
@end
@interface C<T> : NSObject
@end
@interface D
@property (nonatomic,readonly,nonnull) C<D *> *property;
@end
@interface D ()
@property (nonatomic, setter=_setProperty:) C *property; // okay
@end