blob: d74ae8f154fde79365758830cf8a4b8e8dd3a2d0 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
// rdar://8530080
@protocol ViewDelegate @end
@interface NSTextView
- (id <ViewDelegate>)delegate;
@end
@interface FooTextView : NSTextView
@end
@interface FooTextView()
- (id)delegate;
@end
@implementation FooTextView
- (id)delegate {return 0; }
@end