Allan Wang
08/29/2018, 4:34 PMShawn
08/29/2018, 4:41 PMIs there a way to require a method to take in a param that is a data class?No. Data classes are not part of any specific type hierarchy of their own. You cannot extend the notion of a data class or specify an interface that represents all data classes.
Ruckus
08/29/2018, 4:41 PMIs there a way to require a class to have a companion object that implements an interface?No, that doesn't really make any sense.
karelpeeters
08/29/2018, 5:31 PMAllan Wang
08/29/2018, 7:56 PMkarelpeeters
08/29/2018, 8:52 PM