Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // expected-no-diagnostics
      3 // rdar://9296866
      4 
      5 @interface NSResponder
      6 @end
      7 
      8 
      9 @interface NSView : NSResponder
     10 @end
     11 
     12 @interface WebView : NSView
     13 @end
     14 
     15 @protocol WebDocumentView
     16 @end
     17 
     18 @implementation NSView
     19 
     20 - (void) FUNC : (id)s {
     21   WebView *m_webView;
     22   NSView <WebDocumentView> *documentView;
     23   NSView *coordinateView = s ?  documentView : m_webView;
     24 }
     25 @end
     26 
     27