
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests for local mode of goimports and do refactoring of tests.
11 lines
142 B
Go
11 lines
142 B
Go
//args: -Eunconvert
|
|
package testdata
|
|
|
|
import "log"
|
|
|
|
func Unconvert() {
|
|
a := 1
|
|
b := int(a) // ERROR "unnecessary conversion"
|
|
log.Print(b)
|
|
}
|