mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
reflect: improve Value.String()
This commit is contained in:
committed by
Damian Gryski
parent
90af41d089
commit
2a821d2a66
@@ -381,7 +381,7 @@ func (v Value) String() string {
|
||||
return *(*string)(v.value)
|
||||
default:
|
||||
// Special case because of the special treatment of .String() in Go.
|
||||
return "<T>"
|
||||
return "<" + v.typecode.String() + " Value>"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user