Anyone with Kotlin Dagger2 multibindings experienc...
# announcements
r
Anyone with Kotlin Dagger2 multibindings experience? I'm attempting to bind instances of an interface (
SetElemType
) into a
Set
but Kotlin code behaves differently than Java code. In Java, the injection site Factory is generated with
Provider<Set<SetElemType>>
but when the injection site is declared in Kotlin the factory is generated as:
Provider<Set<? extends SetElemType>>
. Dagger then complains that there are no provides:
java.util.Set<? extends SetElemType> cannot be provided with an @Provides annotated-method
.