You have to remove all the immutable
modifiers in Message
to make it
compile. They are not necessary here, because all fields are either
value types or already immutable
(string
).
In theory, there is no reason why this shouldn't also work with immutable
, but Variant
doesn't seem to like it.