mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
One spurious alert was removed, one missing alert was added, and some source locations changed.
16 lines
257 B
Go
16 lines
257 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
type s struct{}
|
|
|
|
func (_ s) String() string {
|
|
password := "horsebatterystaplecorrect" // $ Source
|
|
return password
|
|
}
|
|
|
|
func overrideTest(x s, y fmt.Stringer) {
|
|
fmt.Println(x.String()) // $ Alert
|
|
fmt.Println(y.String()) // OK
|
|
}
|