Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const auto mutableString = [NSMutableString stringWithString:@"abc"];
- mutableString = [NSMutableString stringWithString:@"def"]; // Error: Can not assign to variable 'mutableString' with const-qualified type 'NSMutableString *__strong const'
- [mutableString appendString:@"def"]; // No error
- auto const mutableString = [NSMutableString stringWithString:@"abc"];
- mutableString = [NSMutableString stringWithString:@"def"]; // Error: Can not assign to variable 'mutableString' with const-qualified type 'NSMutableString *__strong const'
- [mutableString appendString:@"def"]; // No error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement