Skip to content

Commit

Permalink
test: match gofrontend error messages
Browse files Browse the repository at this point in the history
The gofrontend code doesn't distinguish semicolon and newline,
and it doesn't have special treatment for EOF.

syntax/semi6.go:9:47: error: unexpected semicolon or newline in type declaration
syntax/semi6.go:11:62: error: unexpected semicolon or newline in type declaration

Change-Id: I9996b59a4fc78ad1935e779f354ddf75c0fb44e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/274692
Trust: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Reviewed-by: Cherry Zhang <[email protected]>
TryBot-Result: Go Bot <[email protected]>
  • Loading branch information
ianlancetaylor committed Dec 2, 2020
1 parent cf7aa58 commit 73e796c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/syntax/semi6.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

package main

type T1 // ERROR "unexpected newline in type declaration"
type T1 // ERROR "newline in type declaration"

type T2 /* // ERROR "unexpected EOF in type declaration" */
type T2 /* // ERROR "(semicolon.*|EOF) in type declaration" */

0 comments on commit 73e796c

Please sign in to comment.