Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame] | 1 | // RUN: clang -verify %s |
2 | |||||
3 | @protocol P | ||||
4 | @end | ||||
5 | |||||
6 | @interface INTF<P> | ||||
7 | - (void)IMeth; | ||||
8 | - (void) Meth; | ||||
9 | @end | ||||
10 | |||||
11 | @implementation INTF | ||||
12 | - (void)IMeth { [(id<P>)self Meth]; } // expected-warning {{method '-Meth' not found in protocol (return type defaults to 'id')}} | ||||
13 | - (void) Meth {} | ||||
14 | @end |