Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame^] | 1 | @protocol P1 |
| 2 | - (void) P1proto; // expected-warning {{method definition for 'P1proto' not found}} |
| 3 | + (void) ClsP1Proto; // expected-warning {{method definition for 'ClsP1Proto' not found}} |
| 4 | - (void) DefP1proto; |
| 5 | @end |
| 6 | @protocol P2 |
| 7 | - (void) P2proto; // expected-warning {{method definition for 'P2proto' not found}} |
| 8 | + (void) ClsP2Proto; // expected-warning {{method definition for 'ClsP2Proto' not found}} |
| 9 | @end |
| 10 | |
| 11 | @protocol P3<P2> |
| 12 | - (void) P3proto; // expected-warning {{method definition for 'P3proto' not found}} |
| 13 | + (void) ClsP3Proto; // expected-warning {{method definition for 'ClsP3Proto' not found}} |
| 14 | + (void) DefClsP3Proto; |
| 15 | @end |
| 16 | |
| 17 | @protocol PROTO<P1, P3> |
| 18 | - (void) meth; // expected-warning {{method definition for 'meth' not found |
| 19 | - (void) meth : (int) arg1; // expected-warning {{method definition for 'meth:' not found |
| 20 | + (void) cls_meth : (int) arg1; // expected-warning {{method definition for 'cls_meth:' not found |
| 21 | @end |
| 22 | |
| 23 | @interface INTF <PROTO> |
| 24 | @end |
| 25 | |
| 26 | @implementation INTF |
| 27 | - (void) DefP1proto{} |
| 28 | |
| 29 | + (void) DefClsP3Proto{} |
| 30 | |
| 31 | @end |