Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CodaFi opened this issue Feb 3, 2021 · 2 comments
Assignees
Labels
compiler The Swift compiler in itself improvement

Comments

@CodaFi
Copy link
Member

CodaFi commented Feb 3, 2021

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
}
@CodaFi
Copy link
Member Author

CodaFi commented Feb 3, 2021

@swift-ci create

@etcwilde
Copy link
Member

This looks like a dupe of https://bugs.swift.org/browse/SR-14074.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself improvement
Projects
None yet
Development

No branches or pull requests

2 participants