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: cannot assign to .byte #14010

Closed
rsc opened this issue Jan 19, 2016 · 1 comment
Closed

cmd/compile: cannot assign to .byte #14010

rsc opened this issue Jan 19, 2016 · 1 comment
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Jan 19, 2016

package p

func f() {
    byte = 0
}

In both Go 1.5 and Go 1.6 prints:

/tmp/x.go:4: type byte is not an expression
/tmp/x.go:4: cannot assign to .byte

That's fine except for the dot in .byte - where did that come from?

@rsc rsc added this to the Go1.7 milestone Jan 19, 2016
@griesemer griesemer self-assigned this Jan 19, 2016
@gopherbot
Copy link

CL https://golang.org/cl/18738 mentions this issue.

@golang golang locked and limited conversation to collaborators Jan 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants