S
Size: a a a
S
AS
S
AS
S
Д
d
P

P
МE

interface Handler<T : Event> {
fun handle(event: T)
fun get(): T
}
val subscribers = mutableListOf<Subscription<out Event>>()
subscribers.add(Subscription(this, H2()))
subscribers.forEach { subscription: Subscription<out Event> ->
Log.e("ssss1", subscription.eventHandler.get().toString())
subscription.eventHandler.handle()
}
Почему получается изменение моего типа Event на Nothing?DB
с#
PE
DB
с#

interface Handler<T : Event> {
fun handle(event: T)
fun get(): T
}
val subscribers = mutableListOf<Subscription<out Event>>()
subscribers.add(Subscription(this, H2()))
subscribers.forEach { subscription: Subscription<out Event> ->
Log.e("ssss1", subscription.eventHandler.get().toString())
subscription.eventHandler.handle()
}
Почему получается изменение моего типа Event на Nothing?QH
QH
с#
M