Skip to content

Commit a8fe176

Browse files
committed
test: fix build
syntax/*: update messages sliceerr3.go: bizarre new error fixed by deleting a space. I could have sworn I ran all.bash before submitting the CL that triggered these. TBR=golang-dev@googlegroups.com R=golang-dev CC=golang-dev https://golang.org/cl/12812044
1 parent f316a7e commit a8fe176

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

test/slice3err.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func f() {
2020
_ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
2121
_ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
2222
_ = array[:j:] // ERROR "final index required in 3-index slice"
23-
_ = array[i:j:] // ERROR "final index required in 3-index slice"
23+
_ = array[i:j:] // ERROR "final index required in 3-index slice"
2424
_ = array[::k] // ERROR "middle index required in 3-index slice"
2525
_ = array[i::k] // ERROR "middle index required in 3-index slice"
2626
_ = array[:j:k]

test/syntax/semi1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package main
88

99
func main() {
10-
if x; y // ERROR "unexpected semicolon or newline before .?{.?|undefined"
10+
if x; y // ERROR "missing { after if clause|undefined"
1111
{
1212
z // GCCGO_ERROR "undefined"
1313

test/syntax/semi2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package main
88

99
func main() {
10-
switch x; y // ERROR "unexpected semicolon or newline before .?{.?|undefined"
10+
switch x; y // ERROR "missing { after switch clause|undefined"
1111
{
1212
z
1313

test/syntax/semi3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package main
88

99
func main() {
10-
for x; y; z // ERROR "unexpected semicolon or newline before .?{.?|undefined"
10+
for x; y; z // ERROR "missing { after for clause|undefined"
1111
{
1212
z // GCCGO_ERROR "undefined"
1313

test/syntax/semi4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package main
88

99
func main() {
1010
for x // GCCGO_ERROR "undefined"
11-
{ // ERROR "unexpected semicolon or newline before .?{.?"
11+
{ // ERROR "missing { after for clause"
1212
z // GCCGO_ERROR "undefined"
1313

1414

0 commit comments

Comments
 (0)