In the case of `Either` it would be : ``` sealed c...
# language-proposals
r
In the case of
Either
it would be :
Copy code
sealed class Either<L, R> {
   data class Left<L, R>(val l: L) : Either<L, R>()
   data class Right<L, R>(val r: R) : Either<L, R>()
}