Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Dec 10, 2025

…g a single tuple argument results in an overrun

If arguments are represented by a single tuple it's possible that the issue is not about missing parameters but instead about tuple destructuring. Fix fixMissingArguments to check for overruns after destructuring and stop if that produces more arguments then parameters because such situations are better diagnosed as a general conversion failure rather than a missing argument(s) problem.

Resolves: rdar://159408715

…g a single tuple argument results in an overrun

If arguments are represented by a single tuple it's possible
that the issue is not about missing parameters but instead
about tuple destructuring. Fix `fixMissingArguments` to check for
overruns after destructuring and stop if that produces more
arguments then parameters because such situations are better
diagnosed as a general conversion failure rather than a missing
argument(s) problem.

Resolves: rdar://159408715
@xedin xedin requested a review from hborla as a code owner December 10, 2025 01:05
@xedin
Copy link
Contributor Author

xedin commented Dec 10, 2025

@swift-ci please test

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