Skip to content

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 18, 2025

…e-element tuple

If we have a tuple with unresolved pack expansion on one side and an optional type on the other, prevent matchTypes from wrapping optional into a one-element tuple because the matching should be handled as part of the optional injection.

Resolves: rdar://152940244
Resolves #82487

…e-element tuple

If we have a tuple with unresolved pack expansion on one side
and an optional type on the other, prevent `matchTypes` from
wrapping optional into a one-element tuple because the matching
should be handled as part of the optional injection.

Resolves: rdar://152940244
@xedin xedin requested a review from hborla as a code owner June 18, 2025 01:30
@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2025

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2025

@swift-ci please test Windows platform

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit 91ae0e0 into swiftlang:main Jun 19, 2025
5 checks passed
xedin added a commit to xedin/swift that referenced this pull request Jun 24, 2025
Follow-up for swiftlang#82326.

The optional injection is only viable is the wrapped type is
not yet resolved, otherwise it's safe to wrap the optional.
xedin added a commit to xedin/swift that referenced this pull request Jun 25, 2025
Follow-up for swiftlang#82326.

The optional injection is only viable is the wrapped type is
not yet resolved, otherwise it's safe to wrap the optional.

(cherry picked from commit 4804f21)
susmonteiro pushed a commit to susmonteiro/swift that referenced this pull request Jul 2, 2025
Follow-up for swiftlang#82326.

The optional injection is only viable is the wrapped type is
not yet resolved, otherwise it's safe to wrap the optional.
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.

Unexpected compiler error when calling value pack-returning function using optional chaining
2 participants