How do I make this compile? ```sealed class InputS...
# announcements
i
How do I make this compile?
Copy code
sealed class InputSelection<T> {
    object None: InputSelection<T>()
    data class Some<T>(val value: T): InputSelection<T>()
}
I tried with
Copy code
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>