support ... as a special type in the reflection library.

R=rsc
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=18386
CL=18393
This commit is contained in:
Rob Pike 2008-11-03 15:50:11 -08:00
parent c4969a3b93
commit 730fd707cb
3 changed files with 17 additions and 0 deletions

View file

@ -67,6 +67,8 @@ func TypeToString(typ Type, expand bool) string {
switch(typ.Kind()) {
case MissingKind:
return "$missing$";
case DotDotDotKind:
return "...";
case IntKind, Int8Kind, Int16Kind, Int32Kind, Int64Kind,
UintKind, Uint8Kind, Uint16Kind, Uint32Kind, Uint64Kind,
FloatKind, Float32Kind, Float64Kind, Float80Kind: