Closed dpinol closed 8 months ago
This is a very tricky and tbh rather niche error I tried fixing this, but it is not obvious how to do it.
In the meantime there are two workarounds:
Node
as a mutable structNode
as a mutable struct with a const field
mutable struct Node
const children::Dict{Int, Node}
end
I agree that this is a bit stupid but I don't think, I'll be able to implement a proper fix soon.
thank you so much! Actually I wanted to make my structs mutable anyway :-)
It looks like recursive struct definitions work fine (I tested with
Union{Nothing, Node}
andVector{Node}
) but with Dict I get a crashI have julia 1.8.2 & JLD2 v0.4.25
thanks