Skip to content

Panic when checking if receiver is nil for nested pointer #59008

Closed as not planned
@noamlerner

Description

@noamlerner

What version of Go are you using (go version)?

$ go 1.20

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOOS="darwin"

What did you do?

https://go.dev/play/p/5Gf2pDNgCgS

What did you expect to see?

I expect to be able to check if a recieving pointer is nil.

What did you see instead?

panic: runtime error: invalid memory address or nil pointer dereference

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions