You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internalsealedclassC{privatereadonlystring?x;// RCS0012privatereadonlystring?y;publicC(stringx,stringy){this.x =x;this.y =y;}publicvoidUseVariables(){// dismiss warnings about unused variable_=x;_=y;}}
Actual Behavior:
Warning RCS0012: Add blank lines between single-line declarations
Expected Behavior:
In contrast with properties and methods, fields are often written without a separate line between them. There is a case to be made that the analyzer should not warn in this case.
Perhaps it would at least be possible to make a different diagnostic for fields, so it can be separately suppressed.
The text was updated successfully, but these errors were encountered:
Product and Version Used:
4.10.0
Steps to Reproduce:
Actual Behavior:
Warning
RCS0012
: Add blank lines between single-line declarationsExpected Behavior:
In contrast with properties and methods, fields are often written without a separate line between them. There is a case to be made that the analyzer should not warn in this case.
Perhaps it would at least be possible to make a different diagnostic for fields, so it can be separately suppressed.
The text was updated successfully, but these errors were encountered: