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 @@ -592,7 +592,7 @@ class DeclAndTypePrinter::Implementation
592592 if (asyncConvention &&
593593 i == asyncConvention->completionHandlerParamIndex ()) {
594594 os << piece << " :(" ;
595- print (asyncConvention->completionHandlerType (), None );
595+ print (asyncConvention->completionHandlerType (), OTK_None );
596596 os << " )completionHandler" ;
597597 continue ;
598598 }
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ import Foundation
1919
2020// CHECK-LABEL: @interface BarClass : NSObject
2121@objc @objcMembers class BarClass : NSObject {
22- // CHECK: (void)doSomethingBigWithCompletionHandler:(void (^)(NSInteger))completionHandler;
22+ // CHECK: (void)doSomethingBigWithCompletionHandler:(void (^ _Nonnull )(NSInteger))completionHandler;
2323 func doSomethingBig( ) async -> Int { 0 }
2424
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;
2626 func longRunning( string: String ) async throws -> BarClass { return self }
2727
28- // CHECK: - (void)magicTupleReturnWithCompletionHandler:(void (^)(BarClass * _Nonnull, NSInteger))completionHandler;
28+ // CHECK: - (void)magicTupleReturnWithCompletionHandler:(void (^ _Nonnull )(BarClass * _Nonnull, NSInteger))completionHandler;
2929 func magicTupleReturn( ) async -> ( BarClass , Int ) { return ( self , 0 ) }
3030}
3131// CHECK: @end
You can’t perform that action at this time.
0 commit comments