Skip to content

[DiscardingTG] Fix runtime signature mismatch for statically known -> Void closure #66219

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

Conversation

kateinoigakukun
Copy link
Member

Since #65613, DiscardingTG started to accept () -> Void instead of () -> T, but it also changed the number of arguments accepted by the closure from 3 to 2. So it should use non_future_adapter instead of future_adapter to avoid runtime signature mismatch.

… Void closure

Since swiftlang#65613, DiscardingTG started to
accept `() -> Void` instead of `() -> T`, but it also changed the number
of arguments accepted by the closure from 3 to 2. So it should use
`non_future_adapter` instead of `future_adapter` to avoid runtime signature
mismatch.
@kateinoigakukun kateinoigakukun requested a review from ktoso May 30, 2023 18:15
@kateinoigakukun
Copy link
Member Author

@swift-ci Please smoke test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that sounds reasonable, thanks for the patch

@kateinoigakukun kateinoigakukun marked this pull request as ready for review May 31, 2023 09:28
@kateinoigakukun
Copy link
Member Author

@swift-ci Please smoke test macOS

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