Invalid async call in default initialized parameter #73892
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
Description
This code successfully compiles with the 2024-05-14 6.0 development snapshot in both Swift 5 and Swift 6 mode.
I'm fairly sure that Swift 5.10's error is correct and this code should be invalid.
Reproduction
Expected behavior
With swift 5.10:
Environment
swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-14-a
Apple Swift version 6.0-dev (LLVM 5b202efbc95a8bf, Swift a17d360)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: