File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ class DeclAndTypePrinter::Implementation
594
594
if (asyncConvention &&
595
595
i == asyncConvention->completionHandlerParamIndex ()) {
596
596
os << piece << " :(" ;
597
- print (asyncConvention->completionHandlerType (), None );
597
+ print (asyncConvention->completionHandlerType (), OTK_None );
598
598
os << " )completionHandler" ;
599
599
continue ;
600
600
}
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ import Foundation
19
19
20
20
// CHECK-LABEL: @interface BarClass : NSObject
21
21
@objc @objcMembers class BarClass : NSObject {
22
- // CHECK: (void)doSomethingBigWithCompletionHandler:(void (^)(NSInteger))completionHandler;
22
+ // CHECK: (void)doSomethingBigWithCompletionHandler:(void (^ _Nonnull )(NSInteger))completionHandler;
23
23
func doSomethingBig( ) async -> Int { 0 }
24
24
25
- // CHECK: - (void)longRunningWithString:(NSString * _Nonnull)string completionHandler:(void (^)(BarClass * _Nullable, NSError * _Nullable))completionHandler;
25
+ // CHECK: - (void)longRunningWithString:(NSString * _Nonnull)string completionHandler:(void (^ _Nonnull )(BarClass * _Nullable, NSError * _Nullable))completionHandler;
26
26
func longRunning( string: String ) async throws -> BarClass { return self }
27
27
28
- // CHECK: - (void)magicTupleReturnWithCompletionHandler:(void (^)(BarClass * _Nonnull, NSInteger))completionHandler;
28
+ // CHECK: - (void)magicTupleReturnWithCompletionHandler:(void (^ _Nonnull )(BarClass * _Nonnull, NSInteger))completionHandler;
29
29
func magicTupleReturn( ) async -> ( BarClass , Int ) { return ( self , 0 ) }
30
30
}
31
31
// CHECK: @end
You can’t perform that action at this time.
0 commit comments