Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jan 7, 2026

… non-function parameters

  • Explanation:

    Don't look through sugar when checking whether to print nonisolated(nonsending) in parameter positions, because underlying types would already be marked appropriately and parameters themselves doesn't require the modifier transfer even when the sugar is stripped.

  • Resolves: rdar://167050741

  • Main branch PR: [AST] ASTPrinter: Don't attempt to print nonisolated(nonsending) on… #86334

  • Risk: Low. Affects only typealiases to async functions referenced in parameter positions when printed in swiftinterfaces.

  • Reviewed By: @hborla

  • Testing: Added new test-cases to the suite.

(cherry picked from commit df109f8)

… non-function parameters

Don't look through sugar when checking whether to print
`nonisolated(nonsending)` in parameter positions, because
underlying types would already be marked appropriately
and parameters themselves doesn't require the modifier
transfer even when the sugar is stripped.

Resolves: rdar://167050741
(cherry picked from commit df109f8)
@xedin xedin requested a review from a team as a code owner January 7, 2026 22:31
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.3 labels Jan 7, 2026
@xedin
Copy link
Contributor Author

xedin commented Jan 7, 2026

@swift-ci please test

@xedin xedin merged commit 83d629d into swiftlang:release/6.3 Jan 8, 2026
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.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants