Closed
Description
Given this snippet in Kotlin
abstract class Other
class InjectClass<T> @Inject constructor(
private val t: T
) where T : Appendable, T : Other
Dagger generates a factory in KSP like so
public final class InjectClass_Factory<T extends Appendable & Other> implements Factory<InjectClass<T>> {
// ...
}
This code however doesn't compile, because while Kotlin allows for the class bound to be in any order, Java requires it to be the first type. That is to say, the generated code should actually be.
public final class InjectClass_Factory<T extends Other & Appendable> implements Factory<InjectClass<T>> {
// ...
}
Metadata
Metadata
Assignees
Labels
No labels