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
dump()
V version: 0.2.4 b9fce4e OS: ArchLinux
What did you do?
struct Window{ mut: widgets []Widget } struct Widget{ mut: parent &Window = voidptr(0) } fn main(){ mut window := &Window{} mut btn := &Widget{} btn.parent = window window.widgets << btn dump(window) }
What did you expect to see? If a field refers to the struct itself, there is no need to print it.
What did you see instead?
[/home/tsukasa/develop/vprojects/bugs/dump.v:19] window: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &Window{ widgets: [Widget{ parent: &<probably circular> }] } }] } }] } }] } }] } }] } }] } }] } }] } }] } }] } }] } }] } }] }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
V version: 0.2.4 b9fce4e
OS: ArchLinux
What did you do?
What did you expect to see?
If a field refers to the struct itself, there is no need to print it.
What did you see instead?
The text was updated successfully, but these errors were encountered: