Closed Softwarekang closed 3 months ago
"I've resolved the issue using the Convert method, but perhaps yaegi could handle this more efficiently." values := val.Call(nil) barValue := values[0].Convert(reflect.TypeOf(&bar.Foo{})) fmt.Println(barValue.Interface().(*bar.Foo).A)
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
9aa161f2da6ef119d62d939ba113af8cad5c54b2
Additional Notes
No response