1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:37:56 -07:00

fix build, enable an exp/eval's assignment check

now that the parser doesn't do this test anymore

R=rsc
CC=golang-dev
https://golang.org/cl/179105
This commit is contained in:
Robert Griesemer 2009-12-18 11:21:11 -08:00
parent 5dc6c80843
commit 057e7d9fae

View File

@ -19,11 +19,7 @@ var stmtTests = []test{
Val2("a, b := 1, 2", "a", 1, "b", 2),
Val2("a, i := 1, 2", "a", 1, "i", 2),
CErr("a, i := 1, f", opTypes),
// TODO(austin) The parser produces an error message for this
// one that's inconsistent with the errors I give for other
// things
//CErr("a, b := 1, 2, 3", "too many"),
CErr("a, b := 1, 2, 3", "arity"),
CErr("a, b := 1, 2, 3", "too many"),
CErr("a := 1, 2", "too many"),
CErr("a, b := 1", "not enough"),
// Mixed declarations