| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 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 | |
| 22 |