ssainterp icon indicating copy to clipboard operation
ssainterp copied to clipboard

panic: panic in Call: interface conversion: interp.Ivalue is <not as expected>

Open elliott5 opened this issue 8 years ago • 0 comments

Reported via e-mail by: Cristian Adamo from Argentina:

When I run the test some fail and we used in my code I can't get rid of errors like this

panic: panic in Call: interface conversion: interp.Ivalue is uint64, not *interp.Ivalue panic: panic in Call: interface conversion: interp.Ivalue is uintptr, not uint64 panic: panic in Call: interface conversion: interp.Ivalue is *[]int32, not *interp.Ivalue

Reply:

I'm afraid it is rather out of date now Cristian, with both the new versions of Go and (most likely for those errors) changes to the ssa package.

You could always start by using the interpreter in the ssa package itself - https://godoc.org/golang.org/x/tools/go/ssa/interp

The ssainterp package is just a faster version of that (by speeding up the interpretation).

elliott5 avatar Jul 29 '17 06:07 elliott5