runtime: fix reflect type for go1.23

This commit is contained in:
visualfc
2025-01-29 18:34:22 +08:00
parent 0b1c4fb54f
commit edd561f8ba
6 changed files with 603 additions and 199 deletions

View File

@@ -22,8 +22,7 @@ func main() {
println("closure", i)
}
}
// TODO(lijie): WORKAROUND for reflect problem on go1.23
_ = any(reflect.Value{})
fns := []any{add, fn, fn1, fn2}
for _, fn := range fns {
v := reflect.ValueOf(fn)