Fariborz Jahanian | 7c2bdcb | 2011-04-18 21:16:59 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // rdar://9296866 | ||||
3 | |||||
4 | @interface NSResponder | ||||
5 | @end | ||||
6 | |||||
7 | |||||
8 | @interface NSView : NSResponder | ||||
9 | @end | ||||
10 | |||||
11 | @interface WebView : NSView | ||||
12 | @end | ||||
13 | |||||
14 | @protocol WebDocumentView | ||||
15 | @end | ||||
16 | |||||
17 | @implementation NSView | ||||
18 | |||||
19 | - (void) FUNC : (id)s { | ||||
20 | WebView *m_webView; | ||||
21 | NSView <WebDocumentView> *documentView; | ||||
22 | NSView *coordinateView = s ? documentView : m_webView; | ||||
23 | } | ||||
24 | @end | ||||
25 |