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