Files
codeql/go/ql/test/query-tests/RedundantCode/CompareIdenticalValues/vp.go
2022-05-20 10:07:19 -07:00

18 lines
202 B
Go

package main
type baseT struct {
length int
}
func (x *baseT) GetLength() int {
return x.length
}
type t struct {
baseT
}
func (x *t) foo(other t) bool {
return x.GetLength() != x.GetLength()
}