reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #pragma clang assume_nonnull begin __attribute__((objc_root_class)) @interface B @end @interface C : B @end __attribute__((objc_root_class)) @interface NSGeneric<T : B *> // expected-note{{type parameter 'T' declared here}} - (T)tee; - (nullable T)maybeTee; @end typedef NSGeneric<C *> *Generic_with_C; #pragma clang assume_nonnull end @interface NSGeneric<T : C *>(Blah) // expected-error{{type bound 'C *' for type parameter 'T' conflicts with previous bound 'B *'}} @end |