brintos

brintos / llvm-project-archived public Read only

0
0
Text · 480 B · 9a51fa1 Raw
22 lines · c
1#pragma clang assume_nonnull begin2 3__attribute__((objc_root_class))4@interface B5@end6 7@interface C : B8@end9 10__attribute__((objc_root_class))11@interface NSGeneric<T : B *> // expected-note{{type parameter 'T' declared here}}12- (T)tee;13- (nullable T)maybeTee;14@end15 16typedef NSGeneric<C *> *Generic_with_C;17 18#pragma clang assume_nonnull end19 20@interface NSGeneric<T : C *>(Blah) // expected-error{{type bound 'C *' for type parameter 'T' conflicts with previous bound 'B *'}}21@end22