github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa4015/testdata/src/example.com/CheckMathInt/CheckMathInt.go (about)

     1  package pkg
     2  
     3  import "math"
     4  
     5  func fn(x int) {
     6  	math.Ceil(float64(x))      //@ diag(`on a converted integer is pointless`)
     7  	math.Floor(float64(x * 2)) //@ diag(`on a converted integer is pointless`)
     8  }