clang/test/SemaObjC/method-in-class-extension-impl.m
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | @protocol ViewDelegate @end |
| 5 | |
| 6 | @interface NSTextView |
| 7 | - (id <ViewDelegate>)delegate; |
| 8 | @end |
| 9 | |
| 10 | @interface FooTextView : NSTextView |
| 11 | @end |
| 12 | |
| 13 | @interface FooTextView() |
| 14 | - (id)delegate; |
| 15 | @end |
| 16 | |
| 17 | @implementation FooTextView |
| 18 | - (id)delegate {return 0; } |
| 19 | @end |
| 20 |