blob: 803832800256d7ef0e828f73dd8b6642aae12b13 [file] [log] [blame]
Steve Naroff04151f32008-10-22 19:16:27 +00001// RUN: clang -fsyntax-only -verify %s
2
3@interface NSSound
4@end
5@interface NSFont
6@end
7
8@interface NSSound (Adds)
9@end
10
11@implementation NSSound (Adds)
12- foo {
13 return self;
14}
15- (void)setFoo:obj {
16}
17@end
18
19@implementation NSFont (Adds)
20
21- xx {
22 NSSound *x;
23 id o;
24
25 o = [x foo];
26 o = x.foo;
27 [x setFoo:o];
28 x.foo = o;
29}
30
31@end
32