Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame^] | 1 | // RUN: clang -rewrite-test %s |
2 | |||||
3 | @protocol P | ||||
4 | - (id<P>) Meth: (id<P>) Arg; | ||||
5 | @end | ||||
6 | |||||
7 | @interface INTF<P> | ||||
8 | - (id<P>)IMeth; | ||||
9 | @end | ||||
10 | |||||
11 | @implementation INTF | ||||
12 | - (id<P>)IMeth { return [(id<P>)self Meth: 0]; } | ||||
13 | - (id<P>) Meth : (id<P>) Arg {} | ||||
14 | @end |