// RUN: clang-cc -fsyntax-only -verify %s @protocol NSWindowDelegate @end @interface NSWindow - (void)setDelegate:(id )anObject; - (id ) delegate; @end @protocol IBStringsTableWindowDelegate @end @interface IBStringsTableWindow : NSWindow {} @end @implementation IBStringsTableWindow - (void)setDelegate:(id )delegate { } - (id )delegate { return 0; } @end