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-14560] Add async alternative creates method that doesn't compile if Error parameter is generic #56912

Open
ahoppen opened this issue Apr 30, 2021 · 1 comment
Labels

Comments

@ahoppen
Copy link
Collaborator

@ahoppen ahoppen commented Apr 30, 2021

Previous ID SR-14560
Radar rdar://problem/77399843
Original Reporter @ahoppen
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee None
Priority Medium

md5: d1424c0305e9784a9152df0805d688bc

Issue Description:

Adding an async alternative to this method

func genericError<E>(completion: (String?, E?) -> Void) where E: Error { }

creates

func genericError<E>() async throws -> String where E: Error { }

which doesn’t compile because E is not used in the async method’s function signature.

@ahoppen
Copy link
Collaborator Author

@ahoppen ahoppen commented Apr 30, 2021

@swift-ci create

@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
Projects
None yet
Development

No branches or pull requests

1 participant