Skip to content

[Version 10.0] Feature support for record structs#1556

Draft
RexJaeschke wants to merge 6 commits intodraft-10from
v10-record-structs
Draft

[Version 10.0] Feature support for record structs#1556
RexJaeschke wants to merge 6 commits intodraft-10from
v10-record-structs

Conversation

@RexJaeschke
Copy link
Contributor

This is Rex's adaptation of the corresponding MS proposal.

@RexJaeschke RexJaeschke added this to the C# 10 milestone Jan 28, 2026
@RexJaeschke RexJaeschke added type: feature This issue describes a new feature Review: pending Proposal is available for review labels Jan 28, 2026
@RexJaeschke RexJaeschke marked this pull request as draft January 28, 2026 16:41
;

record_struct_body
: struct_body ';'?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The optional trailing semicolon was not mentioned in the MS proposal; however, I discovered that VS 2026 18.2.1 allows it (just as we allow it for record classes). What was the intent here?

RexJaeschke added a commit that referenced this pull request Feb 13, 2026
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.

2 participants