iex
05/09/2020, 6:35 PMsealed class InputSelection<T> {
object None: InputSelection<T>()
data class Some<T>(val value: T): InputSelection<T>()
}
I tried with
sealed class InputSelection<T> {
object None: InputSelection<Nothing>()
data class Some<T>(val value: T): InputSelection<T>()
}
but then I can't use InputSelection.None
where I'm expecting an InputSelection<T>