Files
swift-mirror/test/stdlib/Inputs/ErrorBridgedStaticImpl.m
Joe Groff 294913e114 Fix _stdlib_getErrorDefaultUserInfo to have the signature the runtime expects.
The ABI mismatch here would cause a crash in cases when the Foundation overlay wasn't available, or its implementation of swift_Foundation_getErrorDefaultUserInfo wasn't dynamically resolvable, such as in a stripped statically linked binary. Fixes rdar://problem/29173132.
2017-03-08 14:56:02 -08:00

12 lines
140 B
Objective-C

#include "ErrorBridgedStaticImpl.h"
@implementation Foo
- (BOOL)foo:(int)x error:(NSError**)error {
*error = nil;
return NO;
}
@end