https://kotlinlang.org logo
#kodein
Title
s

salomonbrys

04/23/2017, 8:41 PM
Th problem comes with the fact that you are trying to get a
Bus<in T>
, and not a
Bus<in ExecutorTest.TestTaskContext>
. In essence,
T
is not reified. I understand why you are doing this but, unfortunately, there's no easy way to do this in Kodein... properly. A "simple" hack would be to bind and retrieve
Bus<*>
, then cast it to
Bus<in T>
.