| 1 |
// RUN: %clang_cc1 -emit-llvm -o %t %s |
| 2 |
|
| 3 |
@interface NSDictionary @end |
| 4 |
|
| 5 |
@interface NSMutableDictionary : NSDictionary |
| 6 |
@end |
| 7 |
|
| 8 |
@interface MutableMyClass |
| 9 |
- (NSMutableDictionary *)myDict; |
| 10 |
- (void)setMyDict:(NSDictionary *)myDict; |
| 11 |
|
| 12 |
- (NSMutableDictionary *)myLang; |
| 13 |
- (void)setMyLang:(NSDictionary *)myLang; |
| 14 |
@end |
| 15 |
|
| 16 |
@interface AnotherClass @end |
| 17 |
|
| 18 |
@implementation AnotherClass |
| 19 |
- (void)foo |
| 20 |
{ |
| 21 |
MutableMyClass * myObject; |
| 22 |
NSDictionary * newDict; |
| 23 |
myObject.myDict = newDict; |
| 24 |
myObject.myLang = newDict; |
| 25 |
} |
| 26 |
@end |