Files
codeql/ql/test/query-tests/RedundantCode/ImpossibleInterfaceNilCheck/err.go
Max Schaefer 57180c24c7 Simplify consistency query.
Unlike the old ODASA consistency queries, new consistency queries can have expected results, so there is no need to have special handling of files with expected errors.
2020-08-24 17:39:28 +01:00

10 lines
178 B
Go

package main
import "fmt"
func errtest() {
x := unknownFunction()
var y interface{} = x
fmt.Println(y == nil) // OK since we don't know the return type of unknownFunction
}