//args: -Emegacheck package testdata import "fmt" func StylecheckNotInMegacheck(x int) { if 0 == x { panic(x) } } func Staticcheck2() { var x int x = x // ERROR "self-assignment of x to x" fmt.Printf("%d", x) }