Fariborz Jahanian | f54e3ae | 2010-10-08 22:59:25 +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 | f54e3ae | 2010-10-08 22:59:25 +0000 | [diff] [blame] | 3 | // rdar://8530080 |
| 4 | |
| 5 | @protocol ViewDelegate @end |
| 6 | |
| 7 | @interface NSTextView |
| 8 | - (id <ViewDelegate>)delegate; |
| 9 | @end |
| 10 | |
| 11 | @interface FooTextView : NSTextView |
| 12 | @end |
| 13 | |
| 14 | @interface FooTextView() |
| 15 | - (id)delegate; |
| 16 | @end |
| 17 | |
| 18 | @implementation FooTextView |
| 19 | - (id)delegate {return 0; } |
| 20 | @end |
| 21 | |