CS1591 incorrectly reported for records defined using the short syntax #47144
Labels
Area-Compilers
Concept-Design Debt
Engineering Debt, Design Debt, or poor product code quality
Feature - Records
Records
Milestone
Version Used: Version 16.8.0 Preview 2.0
Steps to Reproduce:
Expected Behavior: No warnings
Actual Behavior:
CS1591 reported for both parameters (properties?).
This might actually be a valid warning, except that there is no mechanism to add such documentation. For example:
The above produces CS1587 instead: XML comment is not placed on a valid language element.
I am also unaware of any tag which might be added to the record itself to document the parameters. For example:
This hypothetical syntax is invalid (produces CS1574 and fails to remove CS1591), but I could imagine something like it being used to document the auto-generated properties in a way that satisfies CS1591.
The text was updated successfully, but these errors were encountered: