Commit 97a08f7a authored by Robert Griesemer's avatar Robert Griesemer

parser changed to reflect new semicolon rules

R=rsc
https://golang.org/cl/175046
parent b9b89f56
This diff is collapsed.
......@@ -29,9 +29,9 @@ func TestParseIllegalInputs(t *testing.T) {
var validPrograms = []interface{}{
`package main`,
`package main import "fmt" func main() { fmt.Println("Hello, World!") }`,
`package main func main() { if f(T{}) {} }`,
`package main;`,
`package main; import "fmt"; func main() { fmt.Println("Hello, World!") }` + "\n",
`package main; func main() { if f(T{}) {} }` + "\n",
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment