clang/test/SemaObjC/objc-qualified-property-lookup.m
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | @interface NSObject @end |
| 5 | |
| 6 | @protocol TextInput |
| 7 | -editRange; |
| 8 | @end |
| 9 | |
| 10 | @interface I { |
| 11 | NSObject<TextInput>* editor; |
| 12 | } |
| 13 | - (id) Meth; |
| 14 | @end |
| 15 | |
| 16 | @implementation I |
| 17 | - (id) Meth { |
| 18 | return editor.editRange; |
| 19 | } |
| 20 | @end |
| 21 |