blob: fcf9146a110fad8ba35e02bebf5f4259d1bdb952 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian2574a682009-05-14 23:52:54 +00002
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