Hi i am having a problem and hope this can be clea...
# announcements
t
Hi i am having a problem and hope this can be cleared up here 🙂 I’m havin trouble with the copy method of kotlin data classes. The operator seems to work for all members except Lists.
Copy code
data class ObjectWithList(val list: MutableList<String>)

val entity = ObjectWithList(mutableListOf("hi"))
val newEntity = entity.copy()

println(entity.list === newEntity.list)
Is this intentionally?