forked from OSchip/llvm-project
s/__nonnull/_Nonnull in a test for Objective-C __kindof.
llvm-svn: 241563
This commit is contained in:
parent
25123c040d
commit
89442bbb79
|
@ -296,7 +296,7 @@ void implicit_convert_array(NSArray<__kindof NSString *> *kindofStringsArray,
|
||||||
|
|
||||||
void testNullability() {
|
void testNullability() {
|
||||||
// The base type being a pointer type tickles the bug.
|
// The base type being a pointer type tickles the bug.
|
||||||
extern __kindof id <NSCopying> __nonnull getSomeCopyable();
|
extern __kindof id <NSCopying> _Nonnull getSomeCopyable();
|
||||||
NSString *string = getSomeCopyable(); // no-warning
|
NSString *string = getSomeCopyable(); // no-warning
|
||||||
|
|
||||||
void processCopyable(__typeof(getSomeCopyable()) string);
|
void processCopyable(__typeof(getSomeCopyable()) string);
|
||||||
|
|
Loading…
Reference in New Issue