mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-25 06:49:04 +00:00
reflect: tweak Type.String() for interfaces to make encoding/xml happy
This commit is contained in:
committed by
Damian Gryski
parent
8fb5877d9e
commit
57b0c21492
@@ -542,6 +542,9 @@ func (t *rawType) String() string {
|
|||||||
}
|
}
|
||||||
s += " }"
|
s += " }"
|
||||||
return s
|
return s
|
||||||
|
case Interface:
|
||||||
|
// TODO(dgryski): Needs actual method set info
|
||||||
|
return "interface {}"
|
||||||
default:
|
default:
|
||||||
return t.Kind().String()
|
return t.Kind().String()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user