Commit f0c00f7e authored by Ian Lance Taylor's avatar Ian Lance Taylor

Don't cast nil to a fixed array type.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31916
CL=31937
parent c9399f13
......@@ -226,7 +226,7 @@ func TestAll(t *testing.T) { // TODO(r): wrap up better
t.Errorf("FieldByName says absent field is present");
}
typ = Typeof(([32]int32)(nil));
typ = Typeof([32]int32{});
testType(t, 7, typ, "[32]int32");
testType(t, 8, typ.(*ArrayType).Elem(), "int32");
......
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