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