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 | ffad82b290ed4622bce0e221f8525eced89db528 (patch) | |
tree | abf0fab179eb5654928e0333e5785253793b3c89 /test/SemaObjCXX/parameterized_classes_subst.mm | |
parent | 746c7a1520e1bfb96e55ce474f2f2d1dc87c43df (diff) | |
download | clang-ffad82b290ed4622bce0e221f8525eced89db528.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX/parameterized_classes_subst.mm')
-rw-r--r-- | test/SemaObjCXX/parameterized_classes_subst.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaObjCXX/parameterized_classes_subst.mm b/test/SemaObjCXX/parameterized_classes_subst.mm index cd0096c3fe..1b4c86edb7 100644 --- a/test/SemaObjCXX/parameterized_classes_subst.mm +++ b/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( |