We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fb93d commit c55c2b6Copy full SHA for c55c2b6
test/Constraints/async.swift
@@ -180,3 +180,20 @@ struct OverloadInImplicitAsyncClosure {
180
181
init(int: Int) throws { }
182
}
183
+
184
+@available(SwiftStdlib 5.5, *)
185
+func test(_: Int) async throws {}
186
187
+@discardableResult
188
189
+func test(_: Int) -> String { "" }
190
191
192
+func compute(_: @escaping () -> Void) {}
193
194
195
+func test_sync_in_closure_context() {
196
+ compute {
197
+ test(42) // Ok (select sync overloads and discards the result)
198
+ }
199
+}
0 commit comments