Commit a577ea31 authored by Rob Pike's avatar Rob Pike

uncomment a BUG that is now fixed

R=rsc
DELTA=3  (1 added, 0 deleted, 2 changed)
OCL=22195
CL=22207
parent 91bbd648
......@@ -38,8 +38,9 @@ func main() {
if len(a1) != 3 { panic("a1") }
a2 := [10]int{1,2,3};
if len(a2) != 10 || cap(a2) != 10 { panic("a2") }
//a3 := [10]int{1,2,3,}; // BUG: trailing commas not allowed
//if len(a3) != 10 || a2[3] != 0 { panic("a3") }
a3 := [10]int{1,2,3,};
if len(a3) != 10 || a2[3] != 0 { panic("a3") }
var oai []int;
oai = []int{1,2,3};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment