summaryrefslogtreecommitdiff
path: root/src/lib/reflect/tostring.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/reflect/tostring.go')
-rw-r--r--src/lib/reflect/tostring.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/reflect/tostring.go b/src/lib/reflect/tostring.go
index d317e1a68..b2ccfdf48 100644
--- a/src/lib/reflect/tostring.go
+++ b/src/lib/reflect/tostring.go
@@ -105,9 +105,9 @@ func TypeToString(typ Type, expand bool) string {
}
return str + TypeToString(c.Elem(), false);
case StructKind:
- return "struct{" + typeFieldsToString(typ, ";") + "}";
+ return "struct{" + typeFieldsToString(typ.(StructType), ";") + "}";
case InterfaceKind:
- return "interface{" + typeFieldsToString(typ, ";") + "}";
+ return "interface{" + typeFieldsToString(typ.(InterfaceType), ";") + "}";
case FuncKind:
f := typ.(FuncType);
str = "(" + typeFieldsToString(f.In(), ",") + ")";