1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
8 @interface NSView : NSResponder
11 @interface WebView : NSView
14 @protocol WebDocumentView
17 @implementation NSView
19 - (void) FUNC : (id)s {
21 NSView <WebDocumentView> *documentView;
22 NSView *coordinateView = s ? documentView : m_webView;
29 __attribute__((objc_root_class))
30 @interface NSObject <NSObject>
33 @protocol Goable <NSObject>
37 @protocol Drivable <Goable>
41 @interface Car : NSObject
42 - (NSObject <Goable> *)bestGoable:(NSObject <Goable> *)drivable;
45 @interface Car(Category) <Drivable>
48 @interface Truck : Car
52 - (NSObject <Goable> *)bestGoable:(NSObject <Goable> *)drivable value:(int)value{
53 return value > 0 ? self : drivable;