demo: workaround for reflect abi initialization on go@1.23
This commit is contained in:
@@ -22,6 +22,8 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user