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
old/new parser disagree on error message for the following program:
package n
{
$ go tool compile a.go
syntax error: non-declaration statement outside function body
$ go tool compile -oldparser a.go
syntax error: unexpected semicolon or newline before {
go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered:
I think here the new error message is clearly better: The -oldparser error seems to imply that if there were no semi or newline, the { would be ok, but that's certainly not the case.
old/new parser disagree on error message for the following program:
package n {
go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: