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
Thank you @mdevan for reporting this issue! It is fixed for Go1.18 thanks be to the excellent work that @findleyr and @griesemer implemented this cycle.
$ go version && go run main.go
go version devel go1.18-5344dcae41 Tue Nov 9 00:08:42 2021 +0000 darwin/amd64
# command-line-arguments
./main.go:8:13: undefined: c
What version of Go are you using (
go version
)?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?
In this code:
if the variable 'c' is not defined, these errors are reported:
The first error message is misleading and redundant.
https://play.golang.org/p/I0TcR8834tK
What did you expect to see?
Only the second error message (
undefined: c
).What did you see instead?
As shown above.
The text was updated successfully, but these errors were encountered: