
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests for local mode of goimports and do refactoring of tests.
12 lines
136 B
Go
12 lines
136 B
Go
//args: -Eineffassign
|
|
package testdata
|
|
|
|
func _() {
|
|
x := 0
|
|
for {
|
|
_ = x
|
|
x = 0 // ERROR "ineffectual assignment to `x`"
|
|
x = 0
|
|
}
|
|
}
|