-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Incorrect location of 'async' for protocol in actor's fix suggestion #69246
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
Incorrect location of 'async' for protocol in actor's fix suggestion #69246
Conversation
@swift-ci Please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this code path was not really covered by tests since nothing broke. So wondering if we could add a few more tests for covering "throws" as well.
But PR looks good, someone from Apple team have the final say before merging :)
What I meant by throws tests were something like this import Distributed
protocol P {
func foo() -> Void // here fix-it is also wrong result in func foo() -> async throws Void
}
distributed actor A: P {
func foo() { }
} In this example the fix-it covers It would be nice, but is not required for this PR I guess, but I'll left that up to someone from the team. |
@LucianoPAlmeida ah ok, thanks, I hadn't thought of distributed actors - done. please let me know if it does not look correct. I tried to add the test so that the only error would be what I wanted to test, hence the |
Distributed is the only case where we exercise this Maybe add that test case to a file under |
@swift-ci please smoke test |
This looks good AFAICS, thank you |
@swift-ci please smoke test |
@swift-ci Please smoke test |
Resolves #69244