-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
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
Nested structs fails #96
Comments
Yes, I think this is JuliaLang/julia#29316 (comment). Note that with a two-field struct it works ok:
Maybe the re-construct constructor should be dropped in favor of Setfield.jl or just mutating for mutable. |
Seems to be right. It is definitely an unexpected behavior. In my use case I had something like a graph, specifying parent nodes. Having |
I guess the original way I thought about Parameters is that such a type would contain lots of fields, so this did not occur to me... |
Hey, I have stumbled upon the following problem in Julia 1.1, here is a MWE:
Using standard structs
Using
Base.@kwdef
in Julia 1.1I have no idea why this happens, but it looks like a bug.
The text was updated successfully, but these errors were encountered: