borboss
08/02/2017, 11:17 AMdiesieben07
08/02/2017, 11:23 AMinterface HasTime {
val time: Long
fun copy(time: Long): HasTime
}
data class Time1(override val time: Long) : HasTime
data class Time2(override val time: Long) : HasTime
That works.copy
by hand, which is not that pretty.kirillrakhman
08/02/2017, 11:55 AM