Right now we use getAllProperties to create those in the mutable copy or in the copyMap. However, this is wrong, as we should only select those properties coming from the primary constructor.
[ ] Fix the problem in data classes
[ ] Fix the problem in hierarchies by taking the intersection of those properties in the base class which are overriden in the primary constructors of the children
Right now we use
getAllProperties
to create those in the mutablecopy
or in thecopyMap
. However, this is wrong, as we should only select those properties coming from the primary constructor.