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
There is apparently at least one case left over from the fix to issue #6406. In the
program
package main
func main() {
n.foo = 6
}
gc outputs:
prog.go:4: undefined: n
prog.go:4: cannot assign to n.foo
[process exited with non-zero status]
http://play.golang.org/p/Fa6inkCvR-
With n undefined there is no need for the second error.
The text was updated successfully, but these errors were encountered:
rsc
changed the title
cmd/gc: spurious 'cannot assign to x' error when the field is accessed
cmd/compile: spurious 'cannot assign to x' error when the field is accessed
Jun 8, 2015
The text was updated successfully, but these errors were encountered: