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
Whenever the value of the += expression is taken, it's equivalent to a pre-increment, not a post-increment. When applying the code fix RCS1089, this difference can introduce subtle off-by-one bugs.
Version: 2.3.0
The text was updated successfully, but these errors were encountered:
Passing arguments (M(i += 1)), array indexing (a[i += 1]) -- basically anything where the += expression is used as an expression and not just a statement, by the looks of it.
And of course it's not just the increment operator, this affects the decrement operator as well.
Sharplab
Whenever the value of the
+=
expression is taken, it's equivalent to a pre-increment, not a post-increment. When applying the code fix RCS1089, this difference can introduce subtle off-by-one bugs.Version: 2.3.0
The text was updated successfully, but these errors were encountered: