foo が に実装され、 に実装されているにもかかわらず、 or を実装してTest1(FooBar)いないclang レポート。はの上に存在するため、clang はその実装を確認する必要があり、私が で実装する必要はありません。を実装しているため、clang は で実装する必要はありません。foobarTest1(Foo)barTest1Test1(Foo)@interfaceTest1(FooBar)Test1(Foo)fooTest1(FooBar)Test1barTest1(FooBar)
@interface Test1 : NSObject
- (void) bar;
@end
@interface Test1(Foo)
- (void) foo;
@end
@protocol FooBar <NSObject>
- (void) foo;
- (void) bar;
@end
@interface Test1(FooBar)<FooBar>
@end
@implementation Test1(Foo)
- (void) foo {
}
@end
@implementation Test1(FooBar)
@end