We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sample.go
package main func foo(barval Bar) { if barval.useExists() { println("is fee") } else { println("is not fee") } } func main() { barval := barimpl{true} foo(barval) } type Bar bar type bar interface { useExists() bool } type barimpl struct { exists bool } func (r barimpl) useExists() bool { return r.exists }
$ go run ./sample.go // exists
$ yaegi ./sample.go // panic: sample.go:4:5: CFG post-order panic: runtime error: index out of range [0] with length 0
v0.16.1
Encountered this issue when trying to use this package: gopkg.in/inf.v0
gopkg.in/inf.v0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.16.1
Additional Notes
Encountered this issue when trying to use this package:
gopkg.in/inf.v0
The text was updated successfully, but these errors were encountered: