Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChristianKienle/b29bfa12e4b82db47c73273ea9e31c27 to your computer and use it in GitHub Desktop.
Save ChristianKienle/b29bfa12e4b82db47c73273ea9e31c27 to your computer and use it in GitHub Desktop.
// 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