Skip to content

Conversation

@RexJaeschke
Copy link
Contributor

There is no corresponding MS proposal.

Prior to V10, the tuple elements in a deconstructing assignment all had to be declaration_expressions that designated new local variables, possibly with discards, OR they all had to be identifiers designating existing variables, possibly with discards, but not a combination of old and new variable designators.

V10 allows a combination, as in

int z;
(int x, _, z) = (2, 4, 6);

This is achieved simply by removing the restriction on allowing such a combination.

@RexJaeschke RexJaeschke added this to the C# 10 milestone Jan 23, 2026
@RexJaeschke RexJaeschke added type: feature This issue describes a new feature Review: pending Proposal is available for review labels Jan 23, 2026
@RexJaeschke RexJaeschke marked this pull request as draft January 23, 2026 11:22
@Nigel-Ecma
Copy link
Contributor

The changes required for this are covered by #1538 (in review at the time or writing). That PR is for v8 but contains the changes required for v10 in HTML comments tagged with [TODO]. If #1538 is merged this issue becomes “apply the HTML comments for v10”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review: pending Proposal is available for review type: feature This issue describes a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants