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 type I interface { inI() } type T struct { name string } func (t *T) inI() {} func main() { var i I = &T{name: "foo"} if i, ok := i.(*T); ok { println(i.name) } }
$ go run ./sample.go foo
$ yaegi ./sample.go run: ./sample.go:17:11: undefined selector: name
v0.12.0
No response
The text was updated successfully, but these errors were encountered:
interp: fix redeclaration of an interface variable
7913ead
Fixes traefik#1404.
7a3d2b3
259f64c
Fixes #1404.
Successfully merging a pull request may close this issue.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.12.0
Additional Notes
No response
The text was updated successfully, but these errors were encountered: