what is the best way to share fields in kotlin's "...
# announcements
v
what is the best way to share fields in kotlin's "union"? I mean I'd like to automagically share the four fields from the base type here:
Copy code
sealed class SchedulerMessage<T>(
    val receiver: (T) -> Unit,
    val msg: T,
    val initialDelay: Duration,
    val replayCh: Channel<Job>
)

class Schedule<T>(
    val delayBetween: Duration
) : SchedulerMessage<T>()

class ScheduleOnce<T>() : SchedulerMessage<T>()