blob: 7b218bdbd8035e54ec065a8b0f7684594c4cfbd2 [file] [log] [blame]
Fariborz Jahanian2574a682009-05-14 23:52:54 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3@protocol NSWindowDelegate @end
4
5@interface NSWindow
6- (void)setDelegate:(id <NSWindowDelegate>)anObject;
7- (id <NSWindowDelegate>) delegate;
8@end
9
10@protocol IBStringsTableWindowDelegate <NSWindowDelegate>
11@end
12
13@interface IBStringsTableWindow : NSWindow {}
14@end
15
16@implementation IBStringsTableWindow
17- (void)setDelegate:(id <IBStringsTableWindowDelegate>)delegate {
18}
19- (id <IBStringsTableWindowDelegate>)delegate {
20 return 0;
21}
22@end