swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: x86_64-apple-macosx12.0
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug, Concurrency
Assignee
None
Priority
Medium
md5: c8c7aed5b405714204b16916abd0cfa9
Issue Description:
Attempting to compile the following program taken from `async let` proposal page (SE-0317) fails with error: "Capturing 'async let' variables is not supported".
Task {
asynclet name ="Alice"await greet { await name } // Capturing 'async let' variables is not supported
}
@discardableResultfuncgreet(_f: () async->String) async->String { awaitf() }
Environment
swiftc --version
swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: x86_64-apple-macosx12.0
Additional Detail from JIRA
md5: c8c7aed5b405714204b16916abd0cfa9
Issue Description:
Attempting to compile the following program taken from `async let` proposal page (SE-0317) fails with error: "Capturing 'async let' variables is not supported".
While in the proposal it's stated that "It is legal to capture a async let in a non-escaping asynchronous closure" - https://github.com/apple/swift-evolution/blob/main/proposals/0317-async-let.md#async-let-and-closures
The text was updated successfully, but these errors were encountered: