1 // RUN: %clang_cc1 -Wmethod-signatures -fsyntax-only -verify %s
3 @protocol NSWindowDelegate @end
5 @protocol IBStringsTableWindowDelegate <NSWindowDelegate>
9 - (void)setDelegate:(id <NSWindowDelegate>)anObject; // expected-note {{previous definition is here}}
10 - (id <IBStringsTableWindowDelegate>) delegate; // expected-note {{previous definition is here}}
14 @interface IBStringsTableWindow : NSWindow {}
17 @implementation IBStringsTableWindow
18 - (void)setDelegate:(id <IBStringsTableWindowDelegate>)delegate { // expected-warning {{conflicting parameter types in implementation of 'setDelegate:'}}
20 - (id <NSWindowDelegate>)delegate { // expected-warning {{conflicting return type in implementation of 'delegate':}}