Created
June 8, 2012 12:45
-
-
Save neilinglis/2895424 to your computer and use it in GitHub Desktop.
Shoudn't the static analyser catch this?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableArray *test = [NSMutableArray array]; | |
if (YES) { | |
NSMutableArray *test = [NSMutableArray array]; | |
[test addObject:@"FOO"]; | |
} | |
NSLog(@"%ld",(long)[test count]); //0, naturally |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment