llvm-for-llvmta/tools/clang/test/SemaObjC/method-in-class-extension-i...

22 lines
331 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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