Files
swift-mirror/test/Concurrency/Inputs/Delegate.h
Varun Gandhi b6ed507c13 [Concurrency] Emit async methods in ObjC protocols once.
Previously, the method table would contain duplicate copies due to the
ProtocolDecl carrying a completionHandler-based version of the method,
as well as the async version of the method.

Fixes rdar://76192003.
2021-04-08 16:26:31 -07:00

25 lines
588 B
Objective-C

#ifndef Delegate_h
#define Delegate_h
@import Foundation;
@interface Request : NSObject
@end
@interface Delegate : NSObject
- (void)makeRequest1:(Request * _Nonnull)request completionHandler:(void (^ _Nullable)(void))handler;
- (void)makeRequest2:(NSObject * _Nonnull)request completionHandler:(void (^ _Nullable)(void))handler;
- (void)makeRequest3:(Request * _Nullable)request completionHandler:(void (^ _Nullable)(void))handler;
@end
@protocol MyAsyncProtocol
-(void)myAsyncMethod:(void (^ _Nullable)(NSError * _Nullable, NSString * _Nullable))completionHandler;
@end
#endif