Skip to content

Sema: Infer error convention from @objc protocol requirements. #30763

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

Merged

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Apr 2, 2020

When a Swift declaration witnesses an ObjC protocol requirement, its error convention needs to
match the requirement. Furthermore, if there are different protocol requirements that the
Swift method can witness, with different error conventions, we need to bail out because we
can't simultaneously match all of them. Fixes rdar://problem/59496036 | SR-12201.

When a Swift declaration witnesses an ObjC protocol requirement, its error convention needs to
match the requirement. Furthermore, if there are different protocol requirements that the
Swift method can witness, with different error conventions, we need to bail out because we
can't simultaneously match all of them. Fixes rdar://problem/59496036 | SR-12201.
@jckarter jckarter requested a review from slavapestov April 2, 2020 01:30
@jckarter
Copy link
Contributor Author

jckarter commented Apr 2, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2020

Build failed
Swift Test Linux Platform
Git Sha - 90062f1

@jckarter
Copy link
Contributor Author

jckarter commented Apr 2, 2020

@swift-ci Please test Linux

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2020

Build failed
Swift Test Linux Platform
Git Sha - 90062f1

@jckarter
Copy link
Contributor Author

jckarter commented Apr 2, 2020

@swift-ci Please test Linux

@theblixguy
Copy link
Collaborator

theblixguy commented Apr 2, 2020

Seems like we need to wait for #30776 to be merged first as it disables the failing test on Linux.

Edit: I take it back, seems like the fix landed on master directly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants