mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
compiler,reflect: fix NumMethods for Interface type
This commit is contained in:
Vendored
+1
@@ -456,6 +456,7 @@ func showValue(rv reflect.Value, indent string) {
|
||||
case reflect.Interface:
|
||||
println(indent + " interface")
|
||||
println(indent+" nil:", rv.IsNil())
|
||||
println(indent+" NumMethod:", rv.NumMethod())
|
||||
if !rv.IsNil() {
|
||||
showValue(rv.Elem(), indent+" ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user