[SR-15678] "Capturing 'async let' variables is not supported" compilation error #57957
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
concurrency
Feature: umbrella label for concurrency language features
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: