You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for fixing #1040.
While testing it I found that there's still an issue injecting Provider<T>
open class BaseClass<T : Any> {
// this doesn't compile
@Inject
lateinit var provider: Provider<T>
// this compiles
@Inject
lateinit var value: T
}
e: /library/build/anvil/debug/generated/com/example/library/SuperClass_Factory.kt:18:56 Unresolved reference: T
e: /library/build/anvil/debug/generated/com/example/library/SuperClass_MembersInjector.kt:22:56 Unresolved reference: T
I can inject T but not Provider<T> (we inject Provider<ViewModel> in our app). With Dagger, this compiles and runs but it doesn't if I use anvil to generate the factories.
Thank you for fixing #1040.
While testing it I found that there's still an issue injecting
Provider<T>
I can inject T but not
Provider<T>
(we injectProvider<ViewModel>
in our app). With Dagger, this compiles and runs but it doesn't if I use anvil to generate the factories.The code can be seen in: https://github.com/1gravity/anvil-tests
The text was updated successfully, but these errors were encountered: