!With NON-GENERIC types this code correctly work!
In module:
@Provides
@Named("test")
fun provideTest(): Factory<Cat> {
return createdFactory
}
In activity:
@Inject
@Named("test")
lateinit var mFactory: Factory<Cat>
In the end i get an error:
Error:(1, 1) Some error(s) occurred while processing annotations. Please see the error messages above.
See https://github.com/google/dagger/issues/668#issuecomment-289713497?
(btw, could you please update your comment to fix the formatting? generics are interpreted as HTML markup and sanitized)
Run ./gradlew :app:kaptDebugKotlin in console and check errors with the debug mode. I found the problems I had there since the logger was not printing them out properly.
Most helpful comment
Run
./gradlew :app:kaptDebugKotlinin console and check errors with the debug mode. I found the problems I had there since the logger was not printing them out properly.