-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: "<node DDD>" instead of "..." in errors with [...]T #41247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I’m pretty sure @mdempsky did not intend for to show up in user-facing error messages. |
Oops. Yeah, that error message is wrong. It should say either Edit: As Josh suggests, |
Change https://golang.org/cl/252942 mentions this issue: |
That was quick! Now the message is: # command-line-arguments go/tmp.go:4:17: cannot use [...]int literal (type [3]int) as type [2]int in return argument Thanks, everyone! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It doesn't reproduce with Go 1.13. It does reproduce with Go 1.14, 1.15, and
+721819e7ba
. Going to rebuild a more fresh Go, try the tip, and update the issue in a moment.Update: also reproduces with:
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/rHDhklq4E7D
What did you expect to see?
In Go 1.13:
What did you see instead?
I saw that on @davecheney's Twitter and tried looking up “node DDD” in existing issues. There didn't seem to be one, so I filed this one.
The text was updated successfully, but these errors were encountered: