Open donnol opened 10 months ago
After some try, I found it works like below:
...
{
v, err := i.Eval("main.SumG(1, 2)")
if err != nil {
t.Fatal(err)
}
r := v.Interface().(int)
println(r)
}
...
But, how can I do to work like the normal function?
I also have the same problem, and I really hope to get the answer from the master.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.15.1
Additional Notes
failed with: