1// RUN: %clang_cc1 -Wmethod-signatures -fsyntax-only -verify %s
2
3@protocol NSWindowDelegate @end
4
5@protocol IBStringsTableWindowDelegate <NSWindowDelegate>
6@end
7
8@interface NSWindow
9- (void)setDelegate:(id <NSWindowDelegate>)anObject; // expected-note {{previous definition is here}}
10- (id <IBStringsTableWindowDelegate>) delegate; // expected-note {{previous definition is here}}
11@end
12
13
14@interface IBStringsTableWindow : NSWindow {}
15@end
16
17@implementation IBStringsTableWindow
18- (void)setDelegate:(id <IBStringsTableWindowDelegate>)delegate { // expected-warning {{conflicting parameter types in implementation of 'setDelegate:'}}
19}
20- (id <NSWindowDelegate>)delegate { // expected-warning {{conflicting return type in implementation of 'delegate':}}
21        return 0;
22}
23@end
24