I want to aggregate multibindings like this ```pri...
# dagger
m
I want to aggregate multibindings like this
Copy code
private val providers: Map<Class<out Fragment>, @JvmSuppressWildcards Provider<Fragment>>
I generate Hilt modules with ksp and these look like this
Copy code
@Module
@InstallIn(SingletonComponent::class)
public object HiltNavigationAlertDialogModule {
  @Provides
  @IntoMap
  @NavigationEntryMap
  @LazyClassKey(AlertDialog::class)
  public fun bindAlertDialog(): Fragment = AlertDialog()
}
I see that hilt aggregares the dependency but fails to inject it at the injection site I posted above Is there some tampering with types I need to do? The errors are of no use and I am out of ideas
I just realized I can go the obvious route with
Copy code
private val providers: Map<Class<*>, @JvmSuppressWildcards Provider<Fragment>>
And it works, now the question is: can I get some type safety back or should I just rely on correct application of qualifiers for my multibindings?