It's contravariant? That's interesting. Let me pro...
# language-proposals
o
It's contravariant? That's interesting. Let me propose a change:
Copy code
sealed class Either<out L, out R> {
    data class Left<out L, out R>(val left: L): Either<L, R>()

    data class Right<out L, out R>(val right: R): Either<L, R>()
}