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 Node struct { Name string Alias *Node Child []*Node } func main() { n := &Node{Name: "parent"} n.Child = append(n.Child, &Node{Name: "child"}) println(n.Name, n.Child[0].Name) }
$ go run ./sample.go parent child
$ yagi ./sample.go ./sample.go:11:28: cannot use type *main.Node as type *unsafe2.dummy
v0.10.0
This issue is related to #1296.
Note also that if we comment the unused field Alias *Node in type definition, the test works as expected.
Alias *Node
The text was updated successfully, but these errors were encountered:
interp: fix type processing to support multiple recursive fields
03d4b4a
Fixes #1304
cb81fe4
Successfully merging a pull request may close this issue.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.10.0
Additional Notes
This issue is related to #1296.
Note also that if we comment the unused field
Alias *Node
in type definition, the test works as expected.The text was updated successfully, but these errors were encountered: