Skip to content

[SR-14150] Bogus Diagnostic When 'await' is Missing in async Closure Parameter #56529

@CodaFi

Description

@CodaFi
Previous ID SR-14150
Radar rdar://problem/73913689
Original Reporter @CodaFi
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement
Assignee @etcwilde
Priority Medium

md5: 35fa52e5b775a6b1891a8b1ae8da963b

duplicates:

  • SR-14074 Calling async functions without async produces incorrect diagnostic

Issue Description:

func doWork() async { fatalError() }

runAsyncAndBlock {
  doWork() // 'async' in a function that does not support concurrency
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions