Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 2574a68 | 2009-05-14 23:52:54 +0000 | [diff] [blame] | 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 |