mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
25 lines
588 B
Objective-C
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
|