Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jul 2, 2025

…function types

  • Explanation:

    Currently only declarations would get nonisolated(nonsending) inferred if the upcoming flag is enabled, this changes extend this to apply to asynchronous nonisolated function types as well to match semantics accepted as part of SE-0461.

  • Resolves: rdar://154808850

  • Main Branch PR: [Concurrency] SE-0461: Extend nonisolated(nonsending) inference to function types #82731

  • Risk: Low. The changes are guarded by a flag that is not enabled by default.

  • Reviewed By: @gottesmm

  • Testing: Added new test-cases and updated existing ones in the Concurrency suite.

(cherry picked from commit bb0cd6f)

…function types

Currently only declarations would get `nonisolated(nonsending)`
inferred if the upcoming flag is enabled, this changes extend
this to apply to asynchronous nonisolated function types as well.

Resolves: rdar://154808850
(cherry picked from commit bb0cd6f)
@xedin xedin requested a review from a team as a code owner July 2, 2025 21:27
@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 3, 2025

@swift-ci please test macOS platform

@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jul 3, 2025
@xedin xedin merged commit cf5ab74 into swiftlang:release/6.2 Jul 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants