CS1591 Thinks "protected" is public #68863
Labels
Area-Compilers
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Question
Resolution-By Design
The behavior reported in the issue matches the current design
Milestone
The error message around CS1591 ["missing xml comment for publicly visible type or member"] describes the item the warning relates to as "publicly visible". It also activates on protected members. I'm not sure if it is entirely desired or not, for the warning to throw on protected members. If not, then it is occurring unintentionally. If so, then the message is a bit inaccurate. It might also be nice to be able to configure whether CS1591 triggers for private/protected items, or not.
Version Used:
.Net
6.0
Compiler version:
4.6.0-3.23259.8 (c3cc1d0c)
Language version:
10.0
Steps to Reproduce:
Diagnostic Id:
CS1591
Expected Behavior:
Either no warning about comments [CS1591], because protected is not publicly visible, or if it is desired because of inheritance, a clearer message.
Actual Behavior:
Warning that describes the item as "publicly visible"
The text was updated successfully, but these errors were encountered: