summaryrefslogtreecommitdiff
path: root/src/lib/reflect/all_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-01-23 15:56:04 -0800
committerRob Pike <r@golang.org>2009-01-23 15:56:04 -0800
commit9d2cb8442337201c74e4f4789e6a8ccfc18eb337 (patch)
tree70b8e9ba1512beca6661fa704869d6fcbe069b4c /src/lib/reflect/all_test.go
parent570c88d37bc1dac66a9aac157295fb156bb3983b (diff)
downloadgolang-9d2cb8442337201c74e4f4789e6a8ccfc18eb337.tar.gz
remove the "open" concept from reflect and go with slices and arrays.
the two still share an interface and Kind; that's probably ok but might be worth revisiting. R=rsc DELTA=74 (1 added, 8 deleted, 65 changed) OCL=23416 CL=23418
Diffstat (limited to 'src/lib/reflect/all_test.go')
-rw-r--r--src/lib/reflect/all_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/reflect/all_test.go b/src/lib/reflect/all_test.go
index f991110a8..a840fc892 100644
--- a/src/lib/reflect/all_test.go
+++ b/src/lib/reflect/all_test.go
@@ -270,7 +270,7 @@ func TestAll(tt *testing.T) { // TODO(r): wrap up better
assert(typ.String(), "[]uint32");
t = reflect.ParseTypeString("", "[]int32");
- v := reflect.NewOpenArrayValue(t, 5, 10);
+ v := reflect.NewSliceValue(t, 5, 10);
t1 := reflect.ParseTypeString("", "*[]int32");
v1 := reflect.NewInitValue(t1);
if v1 == nil { panic("V1 is nil"); }