It works without the generic argument, but I don’t want to expose
FooImpl
. Any ideas?
EDIT: oh I see someone just asked this last week. So:
Copy code
singleOf(::FooImpl) {
bind<Foo>()
}
Curious why it’s not possible for the brief form?
a
arnaud.giuliani
12/16/2024, 8:50 AM
yes, the constructor style doesn't take the reified argument for bound type. You need the lambda + bind keyword as you wrote 👍
m
Mark
12/16/2024, 9:02 AM
Thanks Arnaud. Is it technically not possible to support the reified argument?
a
arnaud.giuliani
12/16/2024, 10:59 AM
Thanks Arnaud. Is it technically not possible to support the reified argument?
this DSL part is not ideal, this is why I open exploration on compiler plugin backed up DSL to help write minimum reified stuff and let the plugin generate most of the part