// RUN: clang-cc -fsyntax-only -verify %s
@interface NSObject @end
@protocol ProtocolA
+ (id)classMethod;
- (id)instanceMethod;
@end
@protocol ProtocolB <ProtocolA>
@interface Foo : NSObject <ProtocolB>
@interface SubFoo : Foo
@implementation SubFoo
+ (id)method {
return [super classMethod];
}
- (id)method {
return [super instanceMethod];