Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jul 1, 2025

…s of imported APIs should match

This is a follow-up to #82085 which made it so async variant doesn't get @Sendable inferred because the proposal specified that inference should happen only on completion handler parameter type of a synchronous variant of an imported API.

This runs into implementation issues related to thunking in some cases were async convention expects the type of a completion handler to match exactly for both variants of the imported API.

Resolves: rdar://154695053

…s of imported APIs should match

This is a follow-up to swiftlang#82085
which made it so async variant doesn't get `@Sendable` inferred because
the proposal specified that inference should happen only on completion
handler parameter type of a synchronous variant of an imported API.

This runs into implementation issues related to thunking in some
cases were async convention expects the type of a completion handler
to match exactly for both variants of the imported API.

Resolves: rdar://154695053
@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2025

@swift-ci please test Windows platform

7 similar comments
@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 3, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 3, 2025

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 4, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit ed5fd4e into swiftlang:main Jul 4, 2025
5 checks passed
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.

1 participant