summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjCXX/property-type-mismatch.mm
blob: 059793cf5ceb92b6404a1e65e2072e05110a0579 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_cc1 -fsyntax-only -verify %s
// 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