You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I assigned foo() to a generic error variable, then the check err == nil return false even though it is clearly visible that err is nil as printed right above it.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
What version of Go are you using (
go version
)?This has been validated on other machines and Go version, as well as on
https://go.dev/play
.Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Here is a minimalist example that reproduces this error (play):
What did you expect to see?
I expect that
err == nil
in both cases asfoo()
always returns nil.What did you see instead?
But when I assigned
foo()
to a genericerror
variable, then the checkerr == nil
return false even though it is clearly visible thaterr
isnil
as printed right above it.The text was updated successfully, but these errors were encountered: