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