xref: /llvm-project/clang/test/SemaObjC/method-in-class-extension-impl.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
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
21