-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Code such as the following:
class MyDep
interface Provisioner {
@Provides
fun provideMyDep() = MyDep()
}
interface Accessor1 {
val myDep: MyDep
}
interface Accessor2 {
val myDep: MyDep
}
@Component
interface MyComponent : Provisioner, Accessor1, Accessor2
Generates the following:
public fun KClass<MyComponent>.create(): MyComponent = InjectMyComponent()
public class InjectMyComponent : MyComponent {
public override val myDep: MyDep
get() = provideMyDep()
public override val myDep: MyDep
get() = provideMyDep()
}
The override should only be generated once, as this code cannot be compiled:
Conflicting declarations: public open val myDep: MyDep, public open val myDep: MyDep
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working