type mismatch (related to my last patch).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60599
91177308-0d34-0410-b5e6-
96231b3b80d8
+// RUN: clang -fsyntax-only -verify %s
+
@interface A
- (void) setMoo: (int) x; // expected-note {{previous definition is here}}
- (int) setMoo1: (int) x; // expected-note {{previous definition is here}}
--- /dev/null
+// RUN: clang -fsyntax-only -verify %s
+
+@interface A
+-(float) x;
+@property int x; // expected-error {{type of property 'x' does not match type of accessor 'x'}}
+@end
+
+@interface A (Cat)
+@property int moo; // expected-note {{previous definition is here}}
+@end
+
+@implementation A (Cat)
+-(int) moo {
+ return 0;
+}
+-(void) setMoo: (float) x { // expected-warning {{conflicting types for 'setMoo:'}}
+}
+@end
+