From f0c00f7eee25b50d667d6974af1fee15554b7ec6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 21 Jul 2009 14:06:14 -0700 Subject: [PATCH] Don't cast nil to a fixed array type. R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=31916 CL=31937 --- src/pkg/reflect/all_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/reflect/all_test.go b/src/pkg/reflect/all_test.go index 83bc6a92f19..89e429ec2ef 100644 --- a/src/pkg/reflect/all_test.go +++ b/src/pkg/reflect/all_test.go @@ -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");