Skip to content
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

cmd/compile: bad error message for stray single quote #32133

rsc opened this issue May 19, 2019 · 0 comments


None yet
2 participants
Copy link

commented May 19, 2019

$ cat /tmp/x.go
package p

func f() {
$ go tool compile /tmp/x.go
/tmp/x.go:4:1: '\u0000' evaluated but not used
/tmp/x.go:4:2: newline in character literal

The \u0000 message threw me for a little while. The second message would suffice on its own.

/cc @griesemer

@rsc rsc added this to the Go1.14 milestone May 19, 2019

@griesemer griesemer self-assigned this May 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.