Skip to content

Conversation

@Nigel-Ecma
Copy link
Contributor

@Nigel-Ecma Nigel-Ecma commented Nov 17, 2025

Review: #681 has been merged before completion to reduce the conversation & change complexity. This is a review of this PR’s changes now in draft-v8. Every change will be augmented by a comment in this new PR

Grammar testing: Add sample “Expanded Interfaces” to cover #681 changes. Update tarball to v2.3.7

Review notes:

  • The changes to files in /standard should be read as “review suggestions” – as in the changes may, or may not, be accepted. Each one is commented.

  • Of all the other files the only one you may wish to read is /tools/GrammarTesting/Tests/Parsing/Samples/v8/Expanded Interfaces/sample.cs. This is the trivial sample added to check that all the new members of interfaces are parsed as expected.

- dotnet#681 has been merged before completion to reduce
  the conversation & change complexity. This is a review of
  this PR changes now in draft-v8. Every change will be
  augmented by a comment in the new PR
- Grammar testing, updates post dotnet#681
  - Update tarball to v2.3.7
  - Add sample “Expanded Interfaces”
@Nigel-Ecma Nigel-Ecma self-assigned this Nov 17, 2025
@Nigel-Ecma Nigel-Ecma added this to the C# 8.0 milestone Nov 17, 2025
@Nigel-Ecma Nigel-Ecma marked this pull request as ready for review November 17, 2025 01:16
@RexJaeschke RexJaeschke removed their request for review November 17, 2025 11:45
@Nigel-Ecma
Copy link
Contributor Author

Closing & reopening to refresh tools

@Nigel-Ecma Nigel-Ecma closed this Nov 17, 2025
@Nigel-Ecma
Copy link
Contributor Author

Reopening with refreshed tools…

@Nigel-Ecma Nigel-Ecma reopened this Nov 17, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This is good. I upvoted all the standard changes I agreed with, and added comments on the few others I had feedback on.

### 19.6.5 Interface mapping
A class or struct shall provide implementations of all abstract members of the interfaces that are listed in the base class list of the class or struct. The process of locating implementations of interface members in an implementing class or struct is known as ***interface mapping***.
A class or struct shall provide implementations for all abstract members of the interfaces that are listed in the base class list of the class or struct which do not have a reachable implementation; where an implementation can become unreachable due to reabstraction19.4.3](interfaces.md#1943-interface-methods). The process of locating implementations of interface members in an implementing class or struct is known as ***interface mapping***.
Copy link
Contributor Author

@Nigel-Ecma Nigel-Ecma Nov 20, 2025

Choose a reason for hiding this comment

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

As @BillWagner observed my first attempt to improve this didn’t cover reabstraction. Wordsmithing this in was a challenge, the reabstraction could be said to “hide” the existing implementation – but I don’t think we want to use word here. I settled on “(un)reachable” but maybe someone can do better? (@RexJaeschke?)

Same change made to line 1466 below

Copy link
Member

Choose a reason for hiding this comment

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

I like it.

@Nigel-Ecma Nigel-Ecma requested review from jnm2 and jskeet November 20, 2025 04:10
@Nigel-Ecma
Copy link
Contributor Author

Close & reopen to refresh tools

@Nigel-Ecma Nigel-Ecma closed this Nov 20, 2025
@Nigel-Ecma
Copy link
Contributor Author

Reopen…

@Nigel-Ecma Nigel-Ecma reopened this Nov 20, 2025
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.

4 participants