Files
swift-mirror/test/Inputs/clang-importer-sdk/usr/include/errors.h
Slava Pestov 95dc298d3a ForeignErrorConvention ctor was not setting ErrorParameterIsReplaced correctly
For some reason this was only breaking with initializers, and not
ordinary methods, where there was both a throwing and non-throwing
version of the same method.

Fixes <rdar://problem/20922973>.

Swift SVN r28534
2015-05-13 21:42:35 +00:00

32 lines
930 B
Objective-C

/* -*- ObjC -*- */
@import Foundation;
@interface ErrorProne : NSObject
+ (BOOL) fail: (NSError**) error;
+ (BOOL) goAndReturnError: (NSError**) error;
+ (BOOL) tryAndReturnError: (NSError**) error;
+ (BOOL) consume: (id) object error: (NSError**) error;
- (instancetype) initWithNewtonMessagePad: (NSString *) assistant;
- (instancetype) initWithNewtonMessagePad: (NSString *) assistant error: (NSError**) error;
- (instancetype) initWithOne: (nullable id) other error: (NSError**) error;
+ (instancetype) errorProneWithTwo: (nullable id) other error: (NSError**) error;
- (BOOL) conflict1;
- (BOOL) conflict1: (NSError**) error;
- (BOOL) conflict2;
- (BOOL) conflict2AndReturnError: (NSError**) error;
- (BOOL) conflict3: (id) object;
- (BOOL) conflict3: (id) object error: (NSError**) error;
+ (NSArray*) collectionWithCount: (NSInteger) i error: (NSError**) error;
@end
@interface ReallyErrorProne : ErrorProne
@end