2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-06-02 17:58:47 +00:00
|
|
|
@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
|