Skip to content

[ClangImporter] fix argument ordering in call to AccessorDecl::create #36690

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
merged 1 commit into from
Apr 1, 2021

Conversation

kavon
Copy link
Member

@kavon kavon commented Apr 1, 2021

I made a mistake. Luckily nobody was importing async/throws accessors from ObjC (edit: because it's currently not possible to do so).

async before throws, just like in language's syntax
@kavon
Copy link
Member Author

kavon commented Apr 1, 2021

@swift-ci please smoke test and merge

@kavon
Copy link
Member Author

kavon commented Apr 1, 2021

@swift-ci please smoke test linux platform

@slavapestov
Copy link
Contributor

Do you mind adding a test case?

@kavon kavon merged commit b5507d2 into swiftlang:main Apr 1, 2021
@kavon
Copy link
Member Author

kavon commented Apr 1, 2021

There currently isn't a way to test this, because there's no way to import an ObjC decl that calls createFuncOrAccessor with a request to create an AccessorDecl that is throws or async. But, once #36670 lands, it will be possible to do so (and actually, this fix is basically cherry-picked from that PR).

@kavon kavon deleted the cpp-needs-arg-labels branch April 1, 2021 15:27
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.

2 participants