Created
August 23, 2017 14:26
-
-
Save ChristianKienle/b29bfa12e4b82db47c73273ea9e31c27 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// a.m | |
@implementation XXX | |
- (BOOL)doX:(NSError **)error { | |
if([self success] == NO) { | |
if(error == NULL) { | |
log(bla); | |
} | |
} | |
} | |
@end | |
// test.swift | |
func test_doX() { | |
try? doX() // Swift always passes an error to doX: - so line 6 can never be reached with a test. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment