1 // RUN: %clang_cc1 -triple i386-apple-macosx10.10 -fobjc-arc -fsyntax-only -Wno-objc-root-class %s -verify
3 typedef unsigned long NSUInteger;
5 id nameless; // expected-note{{'nameless' declared here}}
8 - (instancetype)initWithObjects:(const id[])objects count:(NSUInteger)count;
12 @property NSArray *array;
13 - (id)getArrayById:(id)name;
14 - (void)setArrayValue:(id)array;
18 - (void)setArray:(id)array;
25 - (void)setArray:(id)array { // expected-note{{'array' declared here}}
26 i.array = aray; // expected-error{{use of undeclared identifier 'aray'; did you mean 'array'}}
28 - (void)setIvarArray {
29 [i setArrayValue:[i getArrayById:nameles]]; // expected-error{{use of undeclared identifier 'nameles'; did you mean 'nameless'}}