Skip to content

Deserialization of abstract types having multiple concrete subtypes #37

@liuyxpp

Description

@liuyxpp

Say we have defined:

abstract type A end
struct B <: A
    b
end
struct C <: A
    c
end

struct Config
    x::A
end

config = Config(B(1))

As the type name is not serialized, in deserialization how do we know the type is B or C?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions