I did that by creating an abstract type. Eg:
abstract type SomeType end
mutable struct One <: SomeType
two::SomeType
x::Bool
end
mutable struct Three
ones::AbstractArray{One}
end
mutable struct Two <: SomeType
threes::AbstractArray{Three}
end
I did that by creating an abstract type. Eg:
abstract type SomeType end
mutable struct One <: SomeType
two::SomeType
x::Bool
end
mutable struct Three
ones::AbstractArray{One}
end
mutable struct Two <: SomeType
threes::AbstractArray{Three}
end