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 import ( "fmt" "go/ast" ) func NewBadExpr() ast.Expr { return &ast.BadExpr{} } func main() { fmt.Printf("%T\n", NewBadExpr().(*ast.BadExpr)) }
$ go run ./sample.go *ast.BadExpr
$ yaegi ./sample.go impossible type assertion: *ast.BadExpr does not implement ast.Expr (missing exprNode method)
v0.11.2
The text was updated successfully, but these errors were encountered:
I tried to reproduce this issue on v0.11.2 and on HEAD of master, and could not, obtaining always the expected result. Are you sure of this ?
Sorry, something went wrong.
Yes, I just updated the reproducer based on #1374
Ignore private methods for binary types during type assertion
1cf9d34
Fixes #1373
Successfully merging a pull request may close this issue.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.11.2
Additional Notes
The text was updated successfully, but these errors were encountered: