S
Size: a a a
S
AS
S
AS
S
Д
d
P
P
МE
interface Handler<T : Event> {Почему получается изменение моего типа Event на Nothing?
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()
}
DB
с#
PE
DB
с#
interface Handler<T : Event> {Почему получается изменение моего типа Event на Nothing?
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()
}
QH
QH
с#
M