mirror of
https://github.com/golang/go
synced 2024-11-21 23:14:40 -07:00
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
This commit is contained in:
parent
f316a7ea87
commit
a8fe176156
@ -20,7 +20,7 @@ func f() {
|
||||
_ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
|
||||
_ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
|
||||
_ = array[:j:] // ERROR "final index required in 3-index slice"
|
||||
_ = array[i:j:] // ERROR "final index required in 3-index slice"
|
||||
_ = array[i:j:] // ERROR "final index required in 3-index slice"
|
||||
_ = array[::k] // ERROR "middle index required in 3-index slice"
|
||||
_ = array[i::k] // ERROR "middle index required in 3-index slice"
|
||||
_ = array[:j:k]
|
||||
|
@ -7,7 +7,7 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
if x; y // ERROR "unexpected semicolon or newline before .?{.?|undefined"
|
||||
if x; y // ERROR "missing { after if clause|undefined"
|
||||
{
|
||||
z // GCCGO_ERROR "undefined"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
switch x; y // ERROR "unexpected semicolon or newline before .?{.?|undefined"
|
||||
switch x; y // ERROR "missing { after switch clause|undefined"
|
||||
{
|
||||
z
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
for x; y; z // ERROR "unexpected semicolon or newline before .?{.?|undefined"
|
||||
for x; y; z // ERROR "missing { after for clause|undefined"
|
||||
{
|
||||
z // GCCGO_ERROR "undefined"
|
||||
|
||||
|
@ -8,7 +8,7 @@ package main
|
||||
|
||||
func main() {
|
||||
for x // GCCGO_ERROR "undefined"
|
||||
{ // ERROR "unexpected semicolon or newline before .?{.?"
|
||||
{ // ERROR "missing { after for clause"
|
||||
z // GCCGO_ERROR "undefined"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user