Sign in
go
/
vscode-go
/
5f1faa39b9fa696fe01644c55a6a00e2af3baaea
/
.
/
test
/
testdata
/
linterTest
/
linter_1.go
blob: 1c429053f1956c30ba38f1ecb0ad9800018c9379 [
file
] [
log
] [
blame
]
package linterTest
import (
"fmt"
)
func ExportedFunc() {
x := compute()
if x == nil {
fmt.Println("nil pointer received")
}
// if x is nil, the next line will panic.
foo(*x)
}
func compute() **int { return nil }
func foo(x *int) { fmt.Println(*x) }