-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Labels
async & awaitFeature → concurrency: asynchronous function aka the async/await patternFeature → concurrency: asynchronous function aka the async/await patterncompilerThe Swift compiler itselfThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationfix-itsFeature: diagnostic fix-itsFeature: diagnostic fix-itsswift 6.3type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
Description
title says it all. note, the current diagnostic id is: no_async_in_await
Reproduction
func f() {}
func g() async {
await f() // ⚠️ no 'async' operations occur within 'await' expression
// no fixit offered to remove the superfluous await
}Expected behavior
a fixit should be offered to remove the superfluous await
Environment
Apple Swift version 6.2 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
Target: arm64-apple-macosx26.0
Additional information
No response
Metadata
Metadata
Assignees
Labels
async & awaitFeature → concurrency: asynchronous function aka the async/await patternFeature → concurrency: asynchronous function aka the async/await patterncompilerThe Swift compiler itselfThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresFeature: umbrella label for concurrency language featuresdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationfix-itsFeature: diagnostic fix-itsFeature: diagnostic fix-itsswift 6.3type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis