trim tags from type strings for structure fields.
R=rsc
DELTA=28 (14 added, 4 deleted, 10 changed)
OCL=18561
CL=18563
diff --git a/src/lib/reflect/test.go b/src/lib/reflect/test.go
index a260a8a..fa55c92 100644
--- a/src/lib/reflect/test.go
+++ b/src/lib/reflect/test.go
@@ -250,4 +250,10 @@
assert(t.String(), "chan<-string");
ct = t.(reflect.ChanType);
assert(ct.Elem().String(), "string");
+
+ // make sure tag strings are not part of element type
+ t = reflect.ParseTypeString("", "struct{d *[]uint32 \"TAG\"}");
+ st = t.(reflect.StructType);
+ name, typ, tag, offset = st.Field(0);
+ assert(typ.String(), "*[]uint32");
}