blob: 803832800256d7ef0e828f73dd8b6642aae12b13 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
@interface NSSound
@end
@interface NSFont
@end
@interface NSSound (Adds)
@end
@implementation NSSound (Adds)
- foo {
return self;
}
- (void)setFoo:obj {
}
@end
@implementation NSFont (Adds)
- xx {
NSSound *x;
id o;
o = [x foo];
o = x.foo;
[x setFoo:o];
x.foo = o;
}
@end