Fariborz Jahanian | 7c2bdcb | 2011-04-18 21:16:59 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Fariborz Jahanian | 7c2bdcb | 2011-04-18 21:16:59 +0000 | [diff] [blame] | 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 | |