gopkg.in/golangci/golangci-lint.v1@v1.10.1/test/testdata/megacheck.go (about)

     1  // args: -Emegacheck
     2  package testdata
     3  
     4  func Megacheck() {
     5  	var x int
     6  	x = x // ERROR "self-assignment of x to x"
     7  }