You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program sample.go triggers an unexpected result
package main
import (
"github.com/traefik/yaegi/interp""log"
)
// Generic example.funcmain() {
// Create a new interpreter contexti:=interp.New(interp.Options{})
// Run some code: define a new function_, err:=i.Eval("var cc interface{}")
iferr!=nil {
log.Fatal(err)
}
// Access the interpreted f function with Eval_, err=i.Eval("cc = 1")
iferr!=nil {
log.Fatal(err)
}
_, err=i.Eval("dd := cc.(int)")
iferr!=nil {
log.Fatal(err)
}
}
Expected result
nothing
Got
1:34: type definition not implemented: typeAssertExpr
Yaegi Version
v0.15.1
Additional Notes
Is the problem caused by type conversion and assignment at the same time ?
The text was updated successfully, but these errors were encountered:
The following program
sample.go
triggers an unexpected resultExpected result
nothing
Got
1:34: type definition not implemented: typeAssertExpr
Yaegi Version
v0.15.1
Additional Notes
Is the problem caused by type conversion and assignment at the same time ?
The text was updated successfully, but these errors were encountered: