mirror of
https://github.com/github/codeql.git
synced 2026-01-30 23:02:56 +01:00
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.
10 lines
178 B
Go
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
|
|
}
|