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
In the case of compound operators such as +=, -=, etc we need to use the
left-hand side to get the value.
For IncDec we need a different codepath from AssignStmt altogether.
Fixesdominikh#1329
In the case of compound operators such as +=, -=, etc we need to use the
left-hand side to get the value.
For IncDec we need a different codepath from AssignStmt altogether.
Fixesdominikh#1329
Go version is 1.19.2 linux/amd64.
Example program:
Staticcheck doesn't complain about that. But if I tweak it to
Then I get
Could SA4006 better detect this case with
+=
?The text was updated successfully, but these errors were encountered: