mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 13:33:39 +00:00
reflect: implement t.Comparable()
This is necessary to support the context package, which is a dependency of a lot of packages.
This commit is contained in:
committed by
Ron Evans
parent
c19c738f52
commit
e356bad4d1
Vendored
+3
@@ -268,6 +268,9 @@ func showValue(rv reflect.Value, indent string) {
|
||||
if rv.CanSet() {
|
||||
print(" settable=", rv.CanSet())
|
||||
}
|
||||
if !rt.Comparable() {
|
||||
print(" comparable=false")
|
||||
}
|
||||
println()
|
||||
switch rt.Kind() {
|
||||
case reflect.Bool:
|
||||
|
||||
Reference in New Issue
Block a user