Fariborz Jahanian | a8c2a0b0 | 2015-03-30 23:30:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | // rdar://20350364 |
| 3 | |
| 4 | @interface NSObject @end |
| 5 | |
| 6 | @interface DBGViewDebuggerSupport : NSObject |
| 7 | + (void)addViewLayerInfo:(id)view; |
| 8 | - (void)addInstViewLayerInfo:(id)view; |
| 9 | @end |
| 10 | |
| 11 | @interface DBGViewDebuggerSupport_iOS : DBGViewDebuggerSupport |
| 12 | @end |
| 13 | |
| 14 | @implementation DBGViewDebuggerSupport_iOS |
| 15 | + (void)addViewLayerInfo:(id)aView; // expected-note {{'aView' declared here}} |
| 16 | { |
| 17 | [super addViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you mean 'aView'?}} |
| 18 | } |
| 19 | - (void)addInstViewLayerInfo:(id)aView; // expected-note {{'aView' declared here}} |
| 20 | { |
| 21 | [super addInstViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you mean 'aView'?}} |
| 22 | } |
| 23 | @end |