Sign in
go
/
vscode-go
/
49e8caf4029e0a113658d48d497797cde818b8a5
/
.
/
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) }