I have the following snippet in my dagger 2 module
@Singleton
@Provides
@ElementsIntoSet
fun providesQueries(foo: Foo): Set{
val queries = Lin
As it described in the Kotlin reference
To make Kotlin APIs work in Java we generate
Box<Super>
asBox<? extends Super>
for covariantly definedBox
(orFoo<? super Bar>
for contravariantly defined Foo) when it appears as a parameter.
You can use @JvmSuppressWildcards
for avoiding it, just as following:
@Inject lateinit var foo: Set<@JvmSuppressWildcards Foo>