Hello. If someone has some idea : <https://stackov...
# announcements
a
all you want is
FooEvent
to be a
data class
and have an empty constructor?
y
Yes...
l
...but why do you want a data class without data? 🤔
y
Because there is data (inherited)
l
ah ok, sorry should've read the stackoverflow question 😅
y
lol, it's ok.
a
@ylemoigne the inherited data is NOT used for `copy`/`componentN`/`equals`
💡 2
only properties inside the primary constructor of the data class
so overriding inside
FooEvent
is your best bet
y
Ho ! I Missed that....
Thanks. Is there a doc explaining how inheritance of data class works ?
Ok, well thanks again.
a
The documentation contains the sentence "The compiler automatically derives the following members from all properties declared in the primary constructor:"