github.com/korjavin/golangci-lint-1@v1.10.1/test/testdata/unconvert.go (about)

     1  // args: -Eunconvert
     2  package testdata
     3  
     4  import "log"
     5  
     6  func Unconvert() {
     7  	a := 1
     8  	b := int(a) // ERROR "unnecessary conversion"
     9  	log.Print(b)
    10  }