cmd/compile: compiles incorrect program (2)
dvyukov opened this issue · comments
Dmitry Vyukov commented
package A
var f=func() {
{
f:=2
_=f
f=9
}
$ go tool compile -oldparser /tmp/test.go
/tmp/test.go:9: syntax error: unexpected EOF
$ go tool compile /tmp/test.go
go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64
GopherBot commented
CL https://golang.org/cl/16972 mentions this issue.