mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +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 += " }"
|
||||
return s
|
||||
case Interface:
|
||||
// TODO(dgryski): Needs actual method set info
|
||||
return "interface {}"
|
||||
default:
|
||||
return t.Kind().String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user