I tried to prepare a minimum reproduction example, but this was the best I could do with my knowledge.
I also searched for some possibly related issues with generics and "CFG post-order panic" error messages, but I couldn't determine if my issue was a new one or not.
Hopefuly someone with more knowledge can look into this.
go.mod used in the sample program:
module playground
go 1.20
require github.com/motoki317/sc v1.6.0
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.15.2-0.20230702082805-8a6061cc86ed
Additional Notes
I encountered this issue while trying to write a new traefik plugin. https://github.com/motoki317/traefik-swr/issues/1
I tried to prepare a minimum reproduction example, but this was the best I could do with my knowledge. I also searched for some possibly related issues with generics and "CFG post-order panic" error messages, but I couldn't determine if my issue was a new one or not. Hopefuly someone with more knowledge can look into this.
go.mod
used in the sample program: