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
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
The text was updated successfully, but these errors were encountered:
better handle duplicate member declarations in superclasses
67a535a
Fixes #309
16bc1bc
Successfully merging a pull request may close this issue.
Code such as the following:
Generates the following:
The override should only be generated once, as this code cannot be compiled:
The text was updated successfully, but these errors were encountered: