We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preconditions:
org.jetbrains.kotlin.android
com.android.library
org.jetbrains.kotlin.jvm
Provided an internal type:
internal class InternalType(val value: String)
A class which leverages the internal type:
internal class InjectionReceiver @Inject constructor(val internalType: InternalType)
and a module which defines a provider for it:
@Module object ReproModule { @Provides internal fun provideInternalType(): InternalType = InternalType("Hello, World!") }
The result of this is a compilation failure due to the generated factory code:
ReproModule_ProvideInternalType$libFactory.java:36: error: cannot find symbol return Preconditions.checkNotNullFromProvides(ReproModule.INSTANCE.provideInternalType$lib()); ^ symbol: method provideInternalType$lib() location: variable INSTANCE of type ReproModule
The actual generated code at the point where it fails looks like this:
public static InternalType provideInternalType$lib() { return Preconditions.checkNotNullFromProvides(ReproModule.INSTANCE.provideInternalType$lib()); }
Looking at the generated code, it appears as if the above should read as follows:
public static InternalType provideInternalType$lib() { return Preconditions.checkNotNullFromProvides(ReproModule.INSTANCE.provideInternalType$lib_debug()); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Preconditions:
org.jetbrains.kotlin.android
andcom.android.library
gradle plugins (this works with standard kotlin +org.jetbrains.kotlin.jvm
)Provided an internal type:
A class which leverages the internal type:
and a module which defines a provider for it:
The result of this is a compilation failure due to the generated factory code:
The actual generated code at the point where it fails looks like this:
Looking at the generated code, it appears as if the above should read as follows:
The text was updated successfully, but these errors were encountered: