@@ -10,12 +10,12 @@ import _Concurrency
10
10
// CHECK-LABEL: class SlowServer : NSObject, ServiceProvider {
11
11
12
12
// CHECK: @available(*, renamed: "doSomethingSlow(_:)")
13
- // CHECK-NEXT: func doSomethingSlow(_ operation: String, completionHandler handler: @escaping @Sendable (Int) -> Void)
13
+ // CHECK-NEXT: func doSomethingSlow(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
14
14
// CHECK-NEXT: @discardableResult
15
15
// CHECK-NEXT: func doSomethingSlow(_ operation: String) async -> Int
16
16
17
17
// CHECK: @available(*, renamed: "doSomethingDangerous(_:)")
18
- // CHECK-NEXT: func doSomethingDangerous(_ operation: String, completionHandler handler: (@Sendable (String?, Error?) -> Void)? = nil)
18
+ // CHECK-NEXT: func doSomethingDangerous(_ operation: String, completionHandler handler: ((String?, Error?) -> Void)? = nil)
19
19
// CHECK-NEXT: @discardableResult
20
20
// CHECK-NEXT: func doSomethingDangerous(_ operation: String) async throws -> String
21
21
@@ -25,37 +25,37 @@ import _Concurrency
25
25
// CHECK-NEXT: func doSomethingReckless(_ operation: String) async throws -> String
26
26
27
27
// CHECK: @available(*, renamed: "checkAvailability()")
28
- // CHECK-NEXT: func checkAvailability(completionHandler: @escaping @Sendable (Bool) -> Void)
28
+ // CHECK-NEXT: func checkAvailability(completionHandler: @escaping (Bool) -> Void)
29
29
// CHECK-NEXT: @discardableResult
30
30
// CHECK-NEXT: func checkAvailability() async -> Bool
31
31
32
32
// CHECK: @available(*, renamed: "anotherExample()")
33
- // CHECK-NEXT: func anotherExample(completionBlock block: @escaping @Sendable (String) -> Void)
33
+ // CHECK-NEXT: func anotherExample(completionBlock block: @escaping (String) -> Void)
34
34
// CHECK-NEXT: @discardableResult
35
35
// CHECK-NEXT: func anotherExample() async -> String
36
36
37
37
// CHECK: @available(*, renamed: "finalExample()")
38
- // CHECK-NEXT: func finalExampleWithReply(to block: @escaping @Sendable (String) -> Void)
38
+ // CHECK-NEXT: func finalExampleWithReply(to block: @escaping (String) -> Void)
39
39
// CHECK-NEXT: @discardableResult
40
40
// CHECK-NEXT: func finalExample() async -> String
41
41
42
42
// CHECK: @available(*, renamed: "replyingOperation(_:)")
43
- // CHECK-NEXT: func replyingOperation(_ operation: String, replyTo block: @escaping @Sendable (String) -> Void)
43
+ // CHECK-NEXT: func replyingOperation(_ operation: String, replyTo block: @escaping (String) -> Void)
44
44
// CHECK-NEXT: @discardableResult
45
45
// CHECK-NEXT: func replyingOperation(_ operation: String) async -> String
46
46
47
47
// CHECK: @available(*, renamed: "findAnswer()")
48
- // CHECK-NEXT: func findAnswer(completionHandler handler: @escaping @Sendable (String?, Error?) -> Void)
48
+ // CHECK-NEXT: func findAnswer(completionHandler handler: @escaping (String?, Error?) -> Void)
49
49
// CHECK-NEXT: @discardableResult
50
50
// CHECK-NEXT: func findAnswer() async throws -> String
51
51
52
52
// CHECK: @available(*, renamed: "findAnswerFailingly()")
53
- // CHECK-NEXT: func findAnswerFailingly(completionHandler handler: @escaping @Sendable (String?, Error?) -> Void) throws
53
+ // CHECK-NEXT: func findAnswerFailingly(completionHandler handler: @escaping (String?, Error?) -> Void) throws
54
54
// CHECK-NEXT: @discardableResult
55
55
// CHECK-NEXT: func findAnswerFailingly() async throws -> String
56
56
57
57
// CHECK: @available(*, renamed: "findQAndA()")
58
- // CHECK-NEXT: func findQAndA(completionHandler handler: @escaping @Sendable (String?, String?, Error?) -> Void)
58
+ // CHECK-NEXT: func findQAndA(completionHandler handler: @escaping (String?, String?, Error?) -> Void)
59
59
// CHECK-NEXT: @discardableResult
60
60
// CHECK-NEXT: func findQAndA() async throws -> (String?, String)
61
61
@@ -65,7 +65,7 @@ import _Concurrency
65
65
// CHECK-NEXT: func findQuestionableAnswers() async throws -> (String, String?)
66
66
67
67
// CHECK: @available(*, renamed: "findAnswerableQuestions()")
68
- // CHECK-NEXT: func findAnswerableQuestions(completionHandler handler: @escaping @Sendable (String?, String?, Error?) -> Void )
68
+ // CHECK-NEXT: func findAnswerableQuestions(completionHandler handler: @escaping NonsendableCompletionHandler )
69
69
// CHECK-NEXT: @discardableResult
70
70
// CHECK-NEXT: func findAnswerableQuestions() async throws -> (String, String?)
71
71
@@ -75,11 +75,11 @@ import _Concurrency
75
75
// CHECK-NEXT: func findUnanswerableQuestions() async throws -> (String, String?)
76
76
77
77
// CHECK: @available(*, renamed: "doSomethingFun(_:)")
78
- // CHECK-NEXT: func doSomethingFun(_ operation: String, then completionHandler: @escaping @Sendable () -> Void)
78
+ // CHECK-NEXT: func doSomethingFun(_ operation: String, then completionHandler: @escaping () -> Void)
79
79
// CHECK-NEXT: func doSomethingFun(_ operation: String) async
80
80
81
81
// CHECK: @available(*, renamed: "doSomethingConflicted(_:)")
82
- // CHECK-NEXT: func doSomethingConflicted(_ operation: String, completionHandler handler: @escaping @Sendable (Int) -> Void)
82
+ // CHECK-NEXT: func doSomethingConflicted(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
83
83
// CHECK-NEXT: @discardableResult
84
84
// CHECK-NEXT: func doSomethingConflicted(_ operation: String) async -> Int
85
85
// CHECK-NEXT: @discardableResult
@@ -94,7 +94,7 @@ import _Concurrency
94
94
// CHECK-NEXT: func runOnMainThread() async -> String
95
95
96
96
// CHECK: @available(*, renamed: "asyncImportSame(_:)")
97
- // CHECK-NEXT: func asyncImportSame(_ operation: String, completionHandler handler: @escaping @Sendable (Int) -> Void)
97
+ // CHECK-NEXT: func asyncImportSame(_ operation: String, completionHandler handler: @escaping (Int) -> Void)
98
98
// CHECK-NEXT: @discardableResult
99
99
// CHECK-NEXT: func asyncImportSame(_ operation: String) async -> Int
100
100
// CHECK-NEXT: func asyncImportSame(_ operation: String, replyTo handler: @escaping (Int) -> Void)
0 commit comments