Dagger 2 multibindings with Kotlin

As it described in the Kotlin reference

To make Kotlin APIs work in Java we generate Box<Super> as
Box<? extends Super> for covariantly defined Box (or Foo<? 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>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)