omarkj
04/23/2017, 7:42 PMval executor = Executor<TestTaskContext>(Kodein {
bind<Bus<TestTaskContext>>() with provider { bus }
})
This fails with
com.github.salomonbrys.kodein.Kodein$NotFoundException: No provider found for bind<Bus<in T>>() with ? { ? }
Registered in Kodein:
bind<Bus<in ExecutorTest.TestTaskContext>>() with provider { ExecutorTest.taskNameSerializesCorrectlyTest$bus$1 }
Which makes sense to me. I can work around this by just passing in a factory function myself (so not using Kodein) but I’m wondering if there is a way to work around this ?