<What is the type of a Kotlin 'data class'?> I hav...
# stackoverflow
u
What is the type of a Kotlin 'data class'? I have a situation where I need to create a copy of data class object. I don't know in advance which of the many data classes I have will come in into the function. I do know, however, that only data classes will be used as input to this function. This is what didn't work: fun doSomething(obj: Any): Any { obj.copy(...) //