Sebastien Leclerc Lavallee
04/14/2020, 4:26 PMclass Parent(val someService: SomeService) { }
class Child(val context: Content): KodeinAware {
override val kodein by kodein(context)
}
How can I make Child inherit from Parent and pass the instance of SomeService
from kodein? Something like:
class Child(val context: Context): Parent(instance<SomeService>()), KodeinAway { }
This ⬆️ does not work, but how can I achieve something like that?
Thanks 😄