]> Cypherpunks repositories - gostls13.git/commitdiff
canonicalize bug122.go
authorRob Pike <r@golang.org>
Mon, 22 Jun 2009 21:40:08 +0000 (14:40 -0700)
committerRob Pike <r@golang.org>
Mon, 22 Jun 2009 21:40:08 +0000 (14:40 -0700)
R=rsc
DELTA=6  (1 added, 3 deleted, 2 changed)
OCL=30604
CL=30604

test/fixedbugs/bug122.go
test/golden.out

index 775cf73e82d4fa554ee3a9c8c068585914ab9927..72bf38a83317730cf5e2eecd20452fdd3c0f891e 100644 (file)
@@ -7,5 +7,6 @@
 package main
 
 func main() {
-       a := make([]int, 10, 20, 30, 40);  // should allow at most 2 sizes
+       // should allow at most 2 sizes
+       a := make([]int, 10, 20, 30, 40); // ERROR "too many"
 }
index 289b12e32a9271f8d027f1e2929cfc07546ecbbf..695a68cd411a7f98cf77398532ac07ecedd8d7c9 100644 (file)
@@ -228,9 +228,6 @@ fixedbugs/bug121.go:20: illegal types for operand: AS
        I
        *S
 
-=========== fixedbugs/bug122.go
-fixedbugs/bug122.go:6: too many arguments to make array
-
 =========== fixedbugs/bug131.go
 fixedbugs/bug131.go:7: cannot convert uint64 constant to int64
 fixedbugs/bug131.go:7: illegal types for operand: AS