Hi! Could anyone help me understand why the follow...
# announcements
m
Hi! Could anyone help me understand why the following code doesn't compile:
Copy code
interface Receiver<in T> {
    fun receive(t: T)
}

interface Value<out T> {
    val src: T

    fun read(to: Receiver<T>) {
        val x = object : Receiver<T> {
            override fun receive(t: T) {
                to.receive(t)
            }
        }
        x.receive(src)
    }
}