]> Cypherpunks repositories - gostls13.git/commitdiff
fix build, enable an exp/eval's assignment check
authorRobert Griesemer <gri@golang.org>
Fri, 18 Dec 2009 19:21:11 +0000 (11:21 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 18 Dec 2009 19:21:11 +0000 (11:21 -0800)
now that the parser doesn't do this test anymore

R=rsc
CC=golang-dev
https://golang.org/cl/179105

src/pkg/exp/eval/stmt_test.go

index 57c3dd7e97b9243b73600c9cf6330295e5574f0d..1600a750781c25185eec5c4f497121da3e32e0eb 100644 (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