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
Using C#11 unsigned right-shift operator (>>>), the rule is raising an issue.
Repro steps
class Person
{
int somefield = 42; // Noncompliant FP (it is part of an UnsignedRightShiftAssignmentExpression)
private readonly Action<int> setter;
Person(int birthYear)
{
setter = i => { somefield >>>= i; };
}
}
Expected behavior
The rule should not raise an issue.
Actual behavior
The rule raises an issue.
The text was updated successfully, but these errors were encountered:
Description
FP for S2933 (FieldShouldBeReadonly).
Using C#11 unsigned right-shift operator (>>>), the rule is raising an issue.
Repro steps
Expected behavior
The rule should not raise an issue.
Actual behavior
The rule raises an issue.
The text was updated successfully, but these errors were encountered: