mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
278 B
Objective-C
17 lines
278 B
Objective-C
#include "ErrorBridgedStaticImpl.h"
|
|
|
|
@implementation Foo
|
|
|
|
- (BOOL)foo:(int)x error:(NSError**)error {
|
|
*error = nil;
|
|
return NO;
|
|
}
|
|
|
|
- (BOOL)foothrows:(int)x error:(NSError**)error {
|
|
*error = [NSError errorWithDomain: @"abcd" code: 1234 userInfo: nil];
|
|
return NO;
|
|
}
|
|
|
|
@end
|
|
|