Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1  -fsyntax-only -verify %s
      2 // rdar://8530080
      3 
      4 @protocol ViewDelegate @end
      5 
      6 @interface NSTextView
      7 - (id <ViewDelegate>)delegate;
      8 @end
      9 
     10 @interface FooTextView : NSTextView
     11 @end
     12 
     13 @interface FooTextView() 
     14 - (id)delegate;
     15 @end
     16 
     17 @implementation FooTextView
     18 - (id)delegate {return 0; }
     19 @end
     20 
     21