blob: 9f3c7ca56189e053e5bcb3daa7a0ac65bf5967c3 [file] [log] [blame]
Test of the suggested fix to remove unnecessary assignments.
-- a.go --
package suggestedfix
import (
"log"
)
func goodbye() {
s := "hiiiiiii"
s = s //@suggestedfix("s = s", re"self-assignment", fix)
log.Print(s)
}
-- @fix/a.go --
@@ -9 +9 @@
- s = s //@suggestedfix("s = s", re"self-assignment", fix)
+ //@suggestedfix("s = s", re"self-assignment", fix)