diff options
| author | Douglas Gregor <dgregor@apple.com> | 2015-07-07 03:58:42 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2015-07-07 03:58:42 +0000 |
| commit | ab209d83be5dadff4f17364a71f323b89e3c63f8 (patch) | |
| tree | 5e97315685c9476095deef062e53e98e525d78e5 /clang/test/SemaObjCXX/parameterized_classes_subst.mm | |
| parent | 10dc9d80cbb47675be0c6ea8481e12ec197e1637 (diff) | |
| download | bcm5719-llvm-ab209d83be5dadff4f17364a71f323b89e3c63f8.tar.gz bcm5719-llvm-ab209d83be5dadff4f17364a71f323b89e3c63f8.zip | |
Implement the Objective-C __kindof type qualifier.
The __kindof type qualifier can be applied to Objective-C object
(pointer) types to indicate id-like behavior, which includes implicit
"downcasting" of __kindof types to subclasses and id-like message-send
behavior. __kindof types provide better type bounds for substitutions
into unspecified generic types, which preserves more type information.
llvm-svn: 241548
Diffstat (limited to 'clang/test/SemaObjCXX/parameterized_classes_subst.mm')
| -rw-r--r-- | clang/test/SemaObjCXX/parameterized_classes_subst.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjCXX/parameterized_classes_subst.mm b/clang/test/SemaObjCXX/parameterized_classes_subst.mm index cd0096c3fef..1b4c86edb76 100644 --- a/clang/test/SemaObjCXX/parameterized_classes_subst.mm +++ b/clang/test/SemaObjCXX/parameterized_classes_subst.mm @@ -172,7 +172,7 @@ void test_property_read( ip = mutSet.allObjects; // expected-error{{from incompatible type 'NSArray *'}} ip = mutArraySet.allObjects; // expected-error{{from incompatible type 'NSArray *'}} - ip = mutDict.someRandomKey; // expected-error{{from incompatible type 'id'}} + ip = mutDict.someRandomKey; // expected-error{{from incompatible type '__kindof id<NSCopying>'}} } void test_property_write( |

